commit | 8b954f96dac5a06aef9c6b1f7343f38a08ab291d | [log] [tgz] |
---|---|---|
author | Jon Hall <jhall@ciena.com> | Tue Mar 28 16:53:22 2017 -0700 |
committer | Ray Milkey <ray@onlab.us> | Wed Apr 05 22:54:30 2017 +0000 |
tree | 689aa18164969c04301ecb0f16f1707afb793054 | |
parent | b78b1139c8b37a12da19709e6129e1aa1e9b7dfb [diff] |
Fix Sonar issue: Strings literals should be placed on the left side when checking for equality Change-Id: I4537e08936731ace55aeecb3ad941269ec1eb191
diff --git a/src/main/java/org/onosproject/segmentrouting/cli/PolicyAddCommand.java b/src/main/java/org/onosproject/segmentrouting/cli/PolicyAddCommand.java index 14694a9..b3b995a 100644 --- a/src/main/java/org/onosproject/segmentrouting/cli/PolicyAddCommand.java +++ b/src/main/java/org/onosproject/segmentrouting/cli/PolicyAddCommand.java
@@ -99,7 +99,7 @@ if (dstPort != 0) { tpb.setDstPort(dstPort); } - if (!proto.equals("ip")) { + if (!"ip".equals(proto)) { tpb.setIpProto(proto); } if (Policy.Type.valueOf(policyType) == Policy.Type.TUNNEL_FLOW) {