Skip to content
Permalink
Browse files

Suppress compilation warning on unit testing intentional failure

  • Loading branch information...
luccioman committed Jul 8, 2018
1 parent 876bcd2 commit 26aa5f7a0fd2e1fdde9b9f2c7a06b43b2ee26e4c
Showing with 2 additions and 1 deletion.
  1. +2 −1 test/java/net/yacy/repository/BlacklistTest.java
@@ -29,7 +29,8 @@ public void testContains() {
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

0 comments on commit 26aa5f7

Please sign in to comment.
You can’t perform that action at this time.