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:
parent
c1be92fbfb
commit
25d443fb05
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue