[Falcon] fixes for Sonar Critical bugs

Change-Id: I0a63578727693a2517f3002bd4f4c391b6f44aea
diff --git a/core/api/src/main/java/org/onosproject/net/intent/IntentUtils.java b/core/api/src/main/java/org/onosproject/net/intent/IntentUtils.java
index f6e33b6..dd77a9a 100644
--- a/core/api/src/main/java/org/onosproject/net/intent/IntentUtils.java
+++ b/core/api/src/main/java/org/onosproject/net/intent/IntentUtils.java
@@ -42,7 +42,7 @@
      * @param two second intent
      * @return true if the two intents represent the same value, otherwise false
      */
-    public static boolean equals(Intent one, Intent two) {
+    public static boolean intentsAreEqual(Intent one, Intent two) {
         if (one.getClass() != two.getClass()) {
             return false;
         }
diff --git a/core/security/src/main/java/org/onosproject/security/store/DistributedSecurityModeStore.java b/core/security/src/main/java/org/onosproject/security/store/DistributedSecurityModeStore.java
index ac16966..925298c 100644
--- a/core/security/src/main/java/org/onosproject/security/store/DistributedSecurityModeStore.java
+++ b/core/security/src/main/java/org/onosproject/security/store/DistributedSecurityModeStore.java
@@ -232,6 +232,7 @@
                         break;
                     case SECURED:
                         notifyDelegate(new SecurityModeEvent(SecurityModeEvent.Type.POLICY_ACCEPTED, appId));
+                        break;
                     default:
                         break;
                 }
@@ -312,4 +313,4 @@
     public void unsetDelegate(SecurityModeStoreDelegate delegate) {
         super.setDelegate(delegate);
     }
-}
\ No newline at end of file
+}