diff --git a/consensusj-jsonrpc/src/main/java/org/consensusj/jsonrpc/JsonRpcClientHttpUrlConnection.java b/consensusj-jsonrpc/src/main/java/org/consensusj/jsonrpc/JsonRpcClientHttpUrlConnection.java index cbb51de7d..2ecf017d8 100644 --- a/consensusj-jsonrpc/src/main/java/org/consensusj/jsonrpc/JsonRpcClientHttpUrlConnection.java +++ b/consensusj-jsonrpc/src/main/java/org/consensusj/jsonrpc/JsonRpcClientHttpUrlConnection.java @@ -142,8 +142,8 @@ private void handleBadResponseCode(int responseCode, HttpURLConnection connectio String responseMessage = connection.getResponseMessage(); String exceptionMessage = responseMessage; int jsonRpcCode = 0; - JsonRpcResponse bodyJson = null; // Body as JSON if available - String bodyString = null; // Body as String if not JSON + JsonRpcResponse bodyJson = null; // Body as JSON, if available + String bodyString = null; // Body as String, if not JSON InputStream errorStream = connection.getErrorStream(); if (errorStream != null) { if (connection.getContentType().equals("application/json")) {