commit | 34ef6a1ef6d7e69710c062843cc8640004a406a4 | [log] [tgz] |
---|---|---|
author | Ray Milkey <ray@opennetworking.org> | Thu Feb 01 17:40:39 2018 -0800 |
committer | Ray Milkey <ray@opennetworking.org> | Fri Feb 02 21:18:57 2018 +0000 |
tree | ec2e2a8d36742964e5d4f8c73421c640708954d0 | |
parent | 99b7bbe67e68024df7add842ae2566a373a833ec [diff] |
SONAR suggestion - checking the same condition twice Change-Id: Ia71206478c21cc92fbd7d37e7915af75727e047e
diff --git a/apps/segmentrouting/src/main/java/org/onosproject/segmentrouting/config/PwaasConfig.java b/apps/segmentrouting/src/main/java/org/onosproject/segmentrouting/config/PwaasConfig.java index 18fc738..feb0049 100644 --- a/apps/segmentrouting/src/main/java/org/onosproject/segmentrouting/config/PwaasConfig.java +++ b/apps/segmentrouting/src/main/java/org/onosproject/segmentrouting/config/PwaasConfig.java
@@ -215,8 +215,8 @@ if ((!ingressInner.equals(VlanId.NONE) && ingressOuter.equals(VlanId.NONE) && !egressOuter.equals(VlanId.NONE)) - || (!ingressOuter.equals(VlanId.NONE) && - egressOuter.equals(VlanId.NONE) && + || (egressOuter.equals(VlanId.NONE) && + !egressInner.equals(VlanId.NONE) && !ingressOuter.equals(VlanId.NONE))) { throw new IllegalArgumentException(String.valueOf(String.format("Support for double-tag<->" + "single-tag is not supported" +
diff --git a/utils/misc/src/main/java/org/onlab/packet/RIPngEntry.java b/utils/misc/src/main/java/org/onlab/packet/RIPngEntry.java index cfe3b62..453f9f6 100644 --- a/utils/misc/src/main/java/org/onlab/packet/RIPngEntry.java +++ b/utils/misc/src/main/java/org/onlab/packet/RIPngEntry.java
@@ -108,7 +108,6 @@ return super.equals(that) && Objects.equals(metric, that.metric) && - Objects.equals(routeTag, that.routeTag) && Objects.equals(prefixLen, that.prefixLen) && Arrays.equals(prefix, that.prefix) && Objects.equals(routeTag, that.routeTag);