@@ -86,7 +86,7 @@ public Map<String, T> getSome(long duration, TimeUnit units)
86
86
throws InterruptedException , ExecutionException {
87
87
Collection <Operation > timedoutOps = new HashSet <Operation >();
88
88
Map <String , T > ret = internalGet (duration , units , timedoutOps );
89
- if (timedoutOps .size () > 0 ) {
89
+ if (! timedoutOps .isEmpty () ) {
90
90
isTimeout = true ;
91
91
LoggerFactory .getLogger (getClass ()).warn (
92
92
new CheckedOperationTimeoutException (duration , units , timedoutOps ).getMessage ());
@@ -106,7 +106,7 @@ public Map<String, T> get(long duration, TimeUnit units)
106
106
throws InterruptedException , ExecutionException , TimeoutException {
107
107
Collection <Operation > timedoutOps = new HashSet <Operation >();
108
108
Map <String , T > ret = internalGet (duration , units , timedoutOps );
109
- if (timedoutOps .size () > 0 ) {
109
+ if (! timedoutOps .isEmpty () ) {
110
110
isTimeout = true ;
111
111
throw new CheckedOperationTimeoutException (duration , units , timedoutOps );
112
112
}
@@ -148,7 +148,7 @@ private Map<String, T> internalGet(long to, TimeUnit unit,
148
148
MemcachedConnection .opSucceeded (op );
149
149
}
150
150
}
151
- if (timedoutOps .size () > 0 ) {
151
+ if (! timedoutOps .isEmpty () ) {
152
152
MemcachedConnection .opsTimedOut (timedoutOps );
153
153
}
154
154
} else {
0 commit comments