@@ -235,10 +235,9 @@ public boolean pollTransaction(String transactionID)
235235 {
236236 Objects .requireNonNull (transactionID , "TransactionID is required!" );
237237
238- String
239- response =
240- runRequestAsync (ENDPOINT_POLLTRANSACTION , Collections .singletonMap (TRANSACTION_ID , transactionID ), Collections .emptyMap (),
241- false , GET );
238+ Map <String , String > params = new LinkedHashMap <>();
239+ params .put (TRANSACTION_ID , transactionID );
240+ String response = runRequestAsync (ENDPOINT_POLLTRANSACTION , params , Collections .emptyMap (), false , GET );
242241 PIResponse piresponse = this .parser .parsePIResponse (response );
243242 return piresponse .value ;
244243 }
@@ -290,8 +289,9 @@ public List<TokenInfo> getTokenInfo(String username)
290289 error ("Cannot retrieve token info without service account!" );
291290 return null ;
292291 }
293-
294- String response = runRequestAsync (ENDPOINT_TOKEN , Collections .singletonMap (USER , username ), new LinkedHashMap <>(), true , GET );
292+ Map <String , String > params = new LinkedHashMap <>();
293+ params .put (USER , username );
294+ String response = runRequestAsync (ENDPOINT_TOKEN , params , new LinkedHashMap <>(), true , GET );
295295 return parser .parseTokenInfoList (response );
296296 }
297297
@@ -372,7 +372,7 @@ private String runRequestAsync(String path, Map<String, String> params, Map<Stri
372372 {
373373 if (!configuration .forwardClientIP .isEmpty ())
374374 {
375- params .put (CLIENT_IP ,configuration .forwardClientIP );
375+ params .put (CLIENT_IP , configuration .forwardClientIP );
376376 }
377377 Callable <String > callable = new AsyncRequestCallable (this , endpoint , path , params , headers , authTokenRequired , method );
378378 Future <String > future = threadPool .submit (callable );
0 commit comments