@@ -147,7 +147,7 @@ public void close() {
147
147
if (httpClient != null ) {
148
148
try {
149
149
httpClient .close ();
150
- } catch (IOException e ) {
150
+ } catch (final IOException e ) {
151
151
logger .error ("Error closing: {}" , e .getMessage (), e );
152
152
}
153
153
}
@@ -178,7 +178,7 @@ public RestResponse submitRequest(final Request request) throws RestException {
178
178
default :
179
179
throw new IllegalArgumentException ("Unknown Request Method: " + request .getRequestMethod ());
180
180
}
181
- } catch (IOException exception ) {
181
+ } catch (final IOException exception ) {
182
182
throw new RestException (exception .getMessage (), exception );
183
183
}
184
184
}
@@ -198,7 +198,7 @@ private <T> T submitGetRequest(final String url, final Map<String, String> getPa
198
198
.setCharset (StandardCharsets .UTF_8 );
199
199
200
200
// Attach submitRequest params
201
- for (Map .Entry <String , String > entry : getParams .entrySet ()) {
201
+ for (final Map .Entry <String , String > entry : getParams .entrySet ()) {
202
202
uriBuilder .setParameter (entry .getKey (), entry .getValue ());
203
203
}
204
204
@@ -215,12 +215,12 @@ private <T> T submitGetRequest(final String url, final Map<String, String> getPa
215
215
216
216
// Execute and return
217
217
return httpClient .execute (get , responseHandler );
218
- } catch (ClientProtocolException e ) {
218
+ } catch (final ClientProtocolException e ) {
219
219
e .printStackTrace ();
220
- } catch (IOException e ) {
220
+ } catch (final IOException e ) {
221
221
// Typically this is a parse error.
222
222
e .printStackTrace ();
223
- } catch (URISyntaxException e ) {
223
+ } catch (final URISyntaxException e ) {
224
224
// Bad URI building
225
225
e .printStackTrace ();
226
226
}
@@ -257,9 +257,9 @@ private <T> T submitPostRequest(final String url, final Object requestBody, fina
257
257
258
258
// Execute and return
259
259
return httpClient .execute (post , responseHandler );
260
- } catch (ClientProtocolException e ) {
260
+ } catch (final ClientProtocolException e ) {
261
261
e .printStackTrace ();
262
- } catch (IOException e ) {
262
+ } catch (final IOException e ) {
263
263
// Typically this is a parse error.
264
264
e .printStackTrace ();
265
265
}
@@ -296,12 +296,12 @@ private <T> T submitPutRequest(final String url, final Object requestBody, final
296
296
297
297
// Execute and return
298
298
return httpClient .execute (put , responseHandler );
299
- } catch (ClientProtocolException e ) {
299
+ } catch (final ClientProtocolException e ) {
300
300
e .printStackTrace ();
301
- } catch (IOException e ) {
301
+ } catch (final IOException e ) {
302
302
// Typically this is a parse error.
303
303
e .printStackTrace ();
304
- } catch (URISyntaxException e ) {
304
+ } catch (final URISyntaxException e ) {
305
305
// Bad URI building
306
306
e .printStackTrace ();
307
307
}
@@ -340,12 +340,12 @@ private <T> T submitDeleteRequest(final String url, final Object requestBody, fi
340
340
341
341
// Execute and return
342
342
return httpClient .execute (delete , responseHandler );
343
- } catch (ClientProtocolException e ) {
343
+ } catch (final ClientProtocolException e ) {
344
344
e .printStackTrace ();
345
- } catch (IOException e ) {
345
+ } catch (final IOException e ) {
346
346
// Typically this is a parse error.
347
347
e .printStackTrace ();
348
- } catch (URISyntaxException e ) {
348
+ } catch (final URISyntaxException e ) {
349
349
// Bad URI building
350
350
e .printStackTrace ();
351
351
}
0 commit comments