@@ -147,7 +147,7 @@ public void close() {
147147 if (httpClient != null ) {
148148 try {
149149 httpClient .close ();
150- } catch (IOException e ) {
150+ } catch (final IOException e ) {
151151 logger .error ("Error closing: {}" , e .getMessage (), e );
152152 }
153153 }
@@ -178,7 +178,7 @@ public RestResponse submitRequest(final Request request) throws RestException {
178178 default :
179179 throw new IllegalArgumentException ("Unknown Request Method: " + request .getRequestMethod ());
180180 }
181- } catch (IOException exception ) {
181+ } catch (final IOException exception ) {
182182 throw new RestException (exception .getMessage (), exception );
183183 }
184184 }
@@ -198,7 +198,7 @@ private <T> T submitGetRequest(final String url, final Map<String, String> getPa
198198 .setCharset (StandardCharsets .UTF_8 );
199199
200200 // Attach submitRequest params
201- for (Map .Entry <String , String > entry : getParams .entrySet ()) {
201+ for (final Map .Entry <String , String > entry : getParams .entrySet ()) {
202202 uriBuilder .setParameter (entry .getKey (), entry .getValue ());
203203 }
204204
@@ -215,12 +215,12 @@ private <T> T submitGetRequest(final String url, final Map<String, String> getPa
215215
216216 // Execute and return
217217 return httpClient .execute (get , responseHandler );
218- } catch (ClientProtocolException e ) {
218+ } catch (final ClientProtocolException e ) {
219219 e .printStackTrace ();
220- } catch (IOException e ) {
220+ } catch (final IOException e ) {
221221 // Typically this is a parse error.
222222 e .printStackTrace ();
223- } catch (URISyntaxException e ) {
223+ } catch (final URISyntaxException e ) {
224224 // Bad URI building
225225 e .printStackTrace ();
226226 }
@@ -257,9 +257,9 @@ private <T> T submitPostRequest(final String url, final Object requestBody, fina
257257
258258 // Execute and return
259259 return httpClient .execute (post , responseHandler );
260- } catch (ClientProtocolException e ) {
260+ } catch (final ClientProtocolException e ) {
261261 e .printStackTrace ();
262- } catch (IOException e ) {
262+ } catch (final IOException e ) {
263263 // Typically this is a parse error.
264264 e .printStackTrace ();
265265 }
@@ -296,12 +296,12 @@ private <T> T submitPutRequest(final String url, final Object requestBody, final
296296
297297 // Execute and return
298298 return httpClient .execute (put , responseHandler );
299- } catch (ClientProtocolException e ) {
299+ } catch (final ClientProtocolException e ) {
300300 e .printStackTrace ();
301- } catch (IOException e ) {
301+ } catch (final IOException e ) {
302302 // Typically this is a parse error.
303303 e .printStackTrace ();
304- } catch (URISyntaxException e ) {
304+ } catch (final URISyntaxException e ) {
305305 // Bad URI building
306306 e .printStackTrace ();
307307 }
@@ -340,12 +340,12 @@ private <T> T submitDeleteRequest(final String url, final Object requestBody, fi
340340
341341 // Execute and return
342342 return httpClient .execute (delete , responseHandler );
343- } catch (ClientProtocolException e ) {
343+ } catch (final ClientProtocolException e ) {
344344 e .printStackTrace ();
345- } catch (IOException e ) {
345+ } catch (final IOException e ) {
346346 // Typically this is a parse error.
347347 e .printStackTrace ();
348- } catch (URISyntaxException e ) {
348+ } catch (final URISyntaxException e ) {
349349 // Bad URI building
350350 e .printStackTrace ();
351351 }
0 commit comments