Simplify lambdas
[openflowplugin.git] / applications / forwardingrules-manager / src / test / java / test / mock / util / FRMTest.java
index 02bcd1ee5411c7615be7168dafc47307c32e2768..fb2bceb2bf649dc7d09b9c3c242b0be30d5930c3 100644 (file)
@@ -100,10 +100,7 @@ public abstract class FRMTest extends AbstractDataBrokerTest {
     }
 
     protected Callable<Integer> listSize(List<?> list) {
-        return new Callable<Integer>() {
-            public Integer call() throws Exception {
-                return list.size(); // The condition supplier part
-            }
-        };
+        // The condition supplier part
+        return list::size;
     }
 }