commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r230931 - /jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/StrTokenizer.java
Date Mon, 08 Aug 2005 23:59:18 GMT
Author: ggregory
Date: Mon Aug  8 16:59:16 2005
New Revision: 230931

URL: http://svn.apache.org/viewcvs?rev=230931&view=rev
Log:
Statement unnecessarily nested within else clause.

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/viewcvs/jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/StrTokenizer.java?rev=230931&r1=230930&r2=230931&view=diff
==============================================================================
--- 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 Aug  8 16:59:16 2005
@@ -498,9 +498,8 @@
     public String nextToken() {
         if (hasNext()) {
             return tokens[tokenPos++];
-        } else {
-            return null;
         }
+        return null;
     }
 
     /**
@@ -511,9 +510,8 @@
     public String previousToken() {
         if (hasPrevious()) {
             return tokens[--tokenPos];
-        } else {
-            return null;
         }
+        return null;
     }
 
     /**



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