diff --git a/src/test/java/org/apache/commons/collections4/iterators/NodeListIteratorTest.java b/src/test/java/org/apache/commons/collections4/iterators/NodeListIteratorTest.java index 4c206a1e8..dfa051a3e 100644 --- a/src/test/java/org/apache/commons/collections4/iterators/NodeListIteratorTest.java +++ b/src/test/java/org/apache/commons/collections4/iterators/NodeListIteratorTest.java @@ -112,8 +112,7 @@ public class NodeListIteratorTest extends AbstractIteratorTest { //----------------------------------------------------------------------- public void testNullConstructor(){ try{ - @SuppressWarnings("unused") - final NodeListIterator iter = new NodeListIterator((Node) null); + new NodeListIterator((Node) null); fail("IllegalArgumentException expected!"); }catch(final IllegalArgumentException e){ // expected.