You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by gg...@apache.org on 2007/01/01 23:01:32 UTC

svn commit: r491651 - /jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/exception/NestableException.java

Author: ggregory
Date: Mon Jan  1 14:01:32 2007
New Revision: 491651

URL: http://svn.apache.org/viewvc?view=rev&rev=491651
Log:
Statement unnecessarily nested within else clause. The corresponding then clause does not complete normally.

Modified:
    jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/exception/NestableException.java

Modified: jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/exception/NestableException.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/exception/NestableException.java?view=diff&rev=491651&r1=491650&r2=491651
==============================================================================
--- jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/exception/NestableException.java (original)
+++ jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/exception/NestableException.java Mon Jan  1 14:01:32 2007
@@ -181,9 +181,8 @@
     public String getMessage(int index) {
         if (index == 0) {
             return super.getMessage();
-        } else {
-            return delegate.getMessage(index);
         }
+        return delegate.getMessage(index);
     }
 
     /**



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org