@@ -700,7 +700,7 @@ else if (uri.getRawQuery() != null)
700
700
case NONE :
701
701
break ;
702
702
default :
703
- throw new IllegalStateException (String . format ( "Invalid Authentication %s" , realm . toString ()) );
703
+ throw new IllegalStateException ("Invalid Authentication " + realm );
704
704
}
705
705
}
706
706
@@ -973,7 +973,7 @@ private <T> ListenableFuture<T> doConnect(final Request request, final AsyncHand
973
973
974
974
// Do not throw an exception when we need an extra connection for a redirect.
975
975
if (!reclaimCache && !connectionsPool .canCacheConnection ()) {
976
- IOException ex = new IOException (String . format ( "Too many connections %s" , config .getMaxTotalConnections () ));
976
+ IOException ex = new IOException ("Too many connections " + config .getMaxTotalConnections ());
977
977
try {
978
978
asyncHandler .onThrowable (ex );
979
979
} catch (Throwable t ) {
@@ -987,7 +987,7 @@ private <T> ListenableFuture<T> doConnect(final Request request, final AsyncHand
987
987
if (trackConnections ) {
988
988
if (!reclaimCache ) {
989
989
if (!freeConnections .tryAcquire ()) {
990
- IOException ex = new IOException (String . format ( "Too many connections %s" , config .getMaxTotalConnections () ));
990
+ IOException ex = new IOException ("Too many connections " + config .getMaxTotalConnections ());
991
991
try {
992
992
asyncHandler .onThrowable (ex );
993
993
} catch (Throwable t ) {
@@ -1296,7 +1296,7 @@ public Object call() throws Exception {
1296
1296
1297
1297
@ Override
1298
1298
public String toString () {
1299
- return String . format ( "Draining task for channel %s" , ctx .getChannel () );
1299
+ return "Draining task for channel " + ctx .getChannel ();
1300
1300
}
1301
1301
});
1302
1302
}
@@ -1838,7 +1838,7 @@ public synchronized void run() {
1838
1838
requestTimeout = p .getRequestTimeoutInMs ();
1839
1839
}
1840
1840
1841
- abort (nettyResponseFuture , new TimeoutException (String . format ( "No response received after %s" , requestTimeout ) ));
1841
+ abort (nettyResponseFuture , new TimeoutException ("No response received after " + requestTimeout ));
1842
1842
1843
1843
nettyResponseFuture = null ;
1844
1844
}
0 commit comments