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
This commit is contained in:
Sebastian Bazley 2013-04-28 23:43:54 +00:00
parent c1be92fbfb
commit 25d443fb05
1 changed files with 1 additions and 2 deletions

View File

@ -112,8 +112,7 @@ public class NodeListIteratorTest extends AbstractIteratorTest<Node> {
//-----------------------------------------------------------------------
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.