TestRoots/watchdog

View on GitHub
core/src/nl/tudelft/watchdog/core/logic/network/NetworkUtils.java

Summary

Maintainability
A
1 hr
Test Coverage

Method transferJsonAndGetResponse has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static String transferJsonAndGetResponse(String url, String jsonData)
            throws ServerCommunicationException, ServerReturnCodeException {
        client = createHTTPClient();
        HttpPost post = new HttpPost(url);
        String errorMessage = "";
Severity: Minor
Found in core/src/nl/tudelft/watchdog/core/logic/network/NetworkUtils.java - About 1 hr to fix

    Avoid too many return statements within this method.
    Open

            return Connection.NETWORK_ERROR;
    Severity: Major
    Found in core/src/nl/tudelft/watchdog/core/logic/network/NetworkUtils.java - About 30 mins to fix

      There are no issues that match your filters.

      Category
      Status