Sonar fixes

Rule: Use isEmpty() to check whether the collection is empty or not.

Change-Id: Ib5ab56b2263623b297db56c5cac2c2ee80e12725
diff --git a/core/net/src/main/java/org/onosproject/net/flow/impl/FlowRuleManager.java b/core/net/src/main/java/org/onosproject/net/flow/impl/FlowRuleManager.java
index 17df9c4..cd244ff 100644
--- a/core/net/src/main/java/org/onosproject/net/flow/impl/FlowRuleManager.java
+++ b/core/net/src/main/java/org/onosproject/net/flow/impl/FlowRuleManager.java
@@ -629,7 +629,7 @@
 
         @Override
         public synchronized void run() {
-            if (stages.size() > 0) {
+            if (!stages.isEmpty()) {
                 process(stages.remove(0));
             } else if (!hasFailed) {
                 fops.callback().onSuccess(fops);