commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r491653 - /jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/StrTokenizer.java
Date Mon, 01 Jan 2007 22:03:58 GMT
Author: ggregory
Date: Mon Jan  1 14:03:58 2007
New Revision: 491653

URL: http://svn.apache.org/viewvc?view=rev&rev=491653
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/text/StrTokenizer.java

Modified: jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/StrTokenizer.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/StrTokenizer.java?view=diff&rev=491653&r1=491652&r2=491653
==============================================================================
--- jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/StrTokenizer.java
(original)
+++ jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/StrTokenizer.java
Mon Jan  1 14:03:58 2007
@@ -1117,9 +1117,8 @@
     public String toString() {
         if (tokens == null) {
             return "StrTokenizer[not tokenized yet]";
-        } else {
-            return "StrTokenizer" + getTokenList();
         }
+        return "StrTokenizer" + getTokenList();
     }
 
 }



---------------------------------------------------------------------
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