Fix sonar issues

- Move string literals to the left side of comparison
- Fix a typo

Change-Id: I3e59cde5d73d99d918b51fa5bcaa7c737ed7f525
diff --git a/apps/test/distributed-primitives/src/main/java/org/onosproject/distributedprimitives/cli/LeaderElectorTestCommand.java b/apps/test/distributed-primitives/src/main/java/org/onosproject/distributedprimitives/cli/LeaderElectorTestCommand.java
index 2ac7a29..ef5e45c 100644
--- a/apps/test/distributed-primitives/src/main/java/org/onosproject/distributedprimitives/cli/LeaderElectorTestCommand.java
+++ b/apps/test/distributed-primitives/src/main/java/org/onosproject/distributedprimitives/cli/LeaderElectorTestCommand.java
@@ -56,11 +56,11 @@
                 .withName(name)
                 .build()
                 .asLeaderElector();
-        if (operation.equals("run")) {
+        if ("run".equals(operation)) {
             print(leaderElector.run(topic, localNodeId));
-        } else if (operation.equals("withdraw")) {
+        } else if ("withdraw".equals(operation)) {
             leaderElector.withdraw(topic);
-        } else if (operation.equals("show")) {
+        } else if ("show".equals(operation)) {
             print(leaderElector.getLeadership(topic));
         }
     }