You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2014/06/29 14:06:02 UTC

svn commit: r1606477 - /commons/proper/bcel/trunk/src/main/java/org/apache/bcel/verifier/structurals/ExceptionHandlers.java

Author: ggregory
Date: Sun Jun 29 12:06:02 2014
New Revision: 1606477

URL: http://svn.apache.org/r1606477
Log:
Statement unnecessarily nested within else clause.

Modified:
    commons/proper/bcel/trunk/src/main/java/org/apache/bcel/verifier/structurals/ExceptionHandlers.java

Modified: commons/proper/bcel/trunk/src/main/java/org/apache/bcel/verifier/structurals/ExceptionHandlers.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/bcel/verifier/structurals/ExceptionHandlers.java?rev=1606477&r1=1606476&r2=1606477&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/main/java/org/apache/bcel/verifier/structurals/ExceptionHandlers.java (original)
+++ commons/proper/bcel/trunk/src/main/java/org/apache/bcel/verifier/structurals/ExceptionHandlers.java Sun Jun 29 12:06:02 2014
@@ -68,9 +68,8 @@ public class ExceptionHandlers{
         Set<ExceptionHandler> hsSet = exceptionhandlers.get(ih);
         if (hsSet == null) {
             return new ExceptionHandler[0];
-        } else{
-            return hsSet.toArray(new ExceptionHandler[hsSet.size()]);
         }
+        return hsSet.toArray(new ExceptionHandler[hsSet.size()]);
     }
 
 }