Skip to content

Commit

Permalink
JsonRpcClientHttpUrlConnection: Add missing generic type <JsonNode>
Browse files Browse the repository at this point in the history
,,, in handleBadResponseCode()
  • Loading branch information
msgilligan committed Sep 22, 2023
1 parent a0c91b7 commit b0cef5b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<JsonNode> 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")) {
Expand Down

0 comments on commit b0cef5b

Please sign in to comment.