@@ -86,7 +86,7 @@ public Map<String, T> getSome(long duration, TimeUnit units)
8686 throws InterruptedException , ExecutionException {
8787 Collection <Operation > timedoutOps = new HashSet <Operation >();
8888 Map <String , T > ret = internalGet (duration , units , timedoutOps );
89- if (timedoutOps .size () > 0 ) {
89+ if (! timedoutOps .isEmpty () ) {
9090 isTimeout = true ;
9191 LoggerFactory .getLogger (getClass ()).warn (
9292 new CheckedOperationTimeoutException (duration , units , timedoutOps ).getMessage ());
@@ -106,7 +106,7 @@ public Map<String, T> get(long duration, TimeUnit units)
106106 throws InterruptedException , ExecutionException , TimeoutException {
107107 Collection <Operation > timedoutOps = new HashSet <Operation >();
108108 Map <String , T > ret = internalGet (duration , units , timedoutOps );
109- if (timedoutOps .size () > 0 ) {
109+ if (! timedoutOps .isEmpty () ) {
110110 isTimeout = true ;
111111 throw new CheckedOperationTimeoutException (duration , units , timedoutOps );
112112 }
@@ -148,7 +148,7 @@ private Map<String, T> internalGet(long to, TimeUnit unit,
148148 MemcachedConnection .opSucceeded (op );
149149 }
150150 }
151- if (timedoutOps .size () > 0 ) {
151+ if (! timedoutOps .isEmpty () ) {
152152 MemcachedConnection .opsTimedOut (timedoutOps );
153153 }
154154 } else {
0 commit comments