commit | a3fcf6754a23a46f2c7b7f856817ea8b4fc5cfb1 | [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 | 2508a2f4bcff7c24cd4d9bcac29aa4e13bad48cd | |
parent | 634eb17ac5e522b94632e34fa797a8333f321892 [diff] [blame] |
Fix Sonar issue: Strings literals should be placed on the left side when checking for equality Change-Id: I4537e08936731ace55aeecb3ad941269ec1eb191
diff --git a/core/common/src/test/java/org/onosproject/codec/impl/TrafficTreatmentCodecTest.java b/core/common/src/test/java/org/onosproject/codec/impl/TrafficTreatmentCodecTest.java index 250b8bd..44f3b7e 100644 --- a/core/common/src/test/java/org/onosproject/codec/impl/TrafficTreatmentCodecTest.java +++ b/core/common/src/test/java/org/onosproject/codec/impl/TrafficTreatmentCodecTest.java
@@ -114,7 +114,7 @@ int counter = 0; for (int idx = 0; idx < node.size(); idx++) { String type = node.get(idx).get("type").asText(); - if (!type.equals("METER") && !type.equals("TABLE")) { + if (!"METER".equals(type) && !"TABLE".equals(type)) { counter++; } }