Suppress compilation warning on unit testing intentional failure

pull/186/head
luccioman 6 years ago
parent 876bcd2f54
commit 26aa5f7a0f

@ -29,7 +29,8 @@ public class BlacklistTest {
hostList.add(pattern);
// proof assumption pattern(path) != path
boolean ret = hostList.contains(path);
@SuppressWarnings("unlikely-arg-type")
boolean ret = hostList.contains(path);
assertFalse("match blacklist pattern " + path, ret);
// proof pattern.toString match works

Loading…
Cancel
Save