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] |
Fix Sonar issue: Strings literals should be placed on the left side when checking for equality Change-Id: I4537e08936731ace55aeecb3ad941269ec1eb191
diff --git a/web/gui/src/main/java/org/onosproject/ui/impl/TopologyViewMessageHandlerBase.java b/web/gui/src/main/java/org/onosproject/ui/impl/TopologyViewMessageHandlerBase.java index bd2574b..7fb5d95 100644 --- a/web/gui/src/main/java/org/onosproject/ui/impl/TopologyViewMessageHandlerBase.java +++ b/web/gui/src/main/java/org/onosproject/ui/impl/TopologyViewMessageHandlerBase.java
@@ -489,7 +489,7 @@ .id(hostId.toString()) .addProp(Properties.MAC, host.mac()) .addProp(Properties.IP, host.ipAddresses(), "[\\[\\]]") - .addProp(Properties.VLAN, vlan.equals("-1") ? "none" : vlan) + .addProp(Properties.VLAN, "-1".equals(vlan) ? "none" : vlan) .addSeparator() .addProp(Properties.LATITUDE, annot.value(AnnotationKeys.LATITUDE)) .addProp(Properties.LONGITUDE, annot.value(AnnotationKeys.LONGITUDE));