mirror of https://github.com/apache/jclouds.git
Suppress self-comparison error-prone warning
We intentionally self-compare to test correctness.
This commit is contained in:
parent
d36812e5a6
commit
84653bac65
|
@ -223,6 +223,7 @@ public class IpPermissionTest {
|
|||
assertTrue(first.compareTo(second) == 0, first + " does not compare zero to " + second);
|
||||
}
|
||||
|
||||
@SuppressWarnings("SelfComparison")
|
||||
private static void assertOrder(IpPermission smaller, IpPermission bigger) {
|
||||
assertTrue(smaller.compareTo(bigger) < 0, smaller + " does not compare less than " + bigger);
|
||||
assertTrue(bigger.compareTo(smaller) > 0, bigger + " does not compare greater than " + smaller);
|
||||
|
|
Loading…
Reference in New Issue