From 25d443fb05849e7fde8cf7ada12847b63685c95f Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Sun, 28 Apr 2013 23:43:54 +0000 Subject: [PATCH] Simplify and avoid complaints about "dead store to actual" git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1476864 13f79535-47bb-0310-9956-ffa450edef68 --- .../commons/collections4/iterators/NodeListIteratorTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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.