commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r491651 - /jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/exception/NestableException.java
Date Mon, 01 Jan 2007 22:01:32 GMT
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


Mime
View raw message