Simplify; avoid potential NPE warnings
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/digester/trunk@1212522 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/test/java/org/apache/commons/digester3/CallMethodRuleTestCase.java b/src/test/java/org/apache/commons/digester3/CallMethodRuleTestCase.java
index d58bf5d..014c076 100644
--- a/src/test/java/org/apache/commons/digester3/CallMethodRuleTestCase.java
+++ b/src/test/java/org/apache/commons/digester3/CallMethodRuleTestCase.java
@@ -268,19 +268,10 @@
}).newDigester();
- // Parse our test input
- NamedBean root1 = null;
- try
- {
- // an exception will be thrown if the method can't be found
- root1 = digester.parse( getInputStream( "Test8.xml" ) );
+ // Parse our test input
+ // an exception will be thrown if the method can't be found
+ NamedBean root1 = digester.parse( getInputStream( "Test8.xml" ) );
- }
- catch ( Throwable t )
- {
- // this means that the method can't be found and so the test fails
- fail( "Digester threw Exception: " + t );
- }
// if the CallMethodRule were to incorrectly invoke the method call
// on the second-created NamedBean instance, then the root one would