commit | 6c28aa4711aa4a166b1e3540c977285cc7d02286 | [log] [tgz] |
---|---|---|
author | Yuta HIGUCHI <y-higuchi@ak.jp.nec.com> | Wed Jan 25 20:54:09 2017 -0800 |
committer | Yuta HIGUCHI <y-higuchi@ak.jp.nec.com> | Wed Jan 25 20:54:09 2017 -0800 |
tree | 037cf2c2a6e741ebe1fd05e20684757ab154f846 | |
parent | 0cde9ce8940aab0faedee9175c5a6175f0cf6772 [diff] |
Fix isViable test Change-Id: Iba04aa1ae84ea737ff64a9f62edd60158df51b59
diff --git a/utils/misc/src/main/java/org/onlab/graph/ScalarWeight.java b/utils/misc/src/main/java/org/onlab/graph/ScalarWeight.java index ccf0c2a..f82bb3a 100644 --- a/utils/misc/src/main/java/org/onlab/graph/ScalarWeight.java +++ b/utils/misc/src/main/java/org/onlab/graph/ScalarWeight.java
@@ -58,7 +58,7 @@ @Override public boolean isViable() { - return this != NON_VIABLE_WEIGHT; + return !this.equals(NON_VIABLE_WEIGHT); } @Override
diff --git a/utils/misc/src/test/java/org/onlab/graph/TestDoubleWeight.java b/utils/misc/src/test/java/org/onlab/graph/TestDoubleWeight.java index 54f9f17..d0fa7fc 100644 --- a/utils/misc/src/test/java/org/onlab/graph/TestDoubleWeight.java +++ b/utils/misc/src/test/java/org/onlab/graph/TestDoubleWeight.java
@@ -59,7 +59,7 @@ @Override public boolean isViable() { - return this != NON_VIABLE_WEIGHT; + return !this.equals(NON_VIABLE_WEIGHT); } @Override