commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r907631 - /commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/text/StrTokenizer.java
Date Mon, 08 Feb 2010 12:22:48 GMT
Author: sebb
Date: Mon Feb  8 12:22:48 2010
New Revision: 907631

URL: http://svn.apache.org/viewvc?rev=907631&view=rev
Log:
Javadoc clarification

Modified:
    commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/text/StrTokenizer.java

Modified: commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/text/StrTokenizer.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/text/StrTokenizer.java?rev=907631&r1=907630&r2=907631&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/text/StrTokenizer.java
(original)
+++ commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/text/StrTokenizer.java
Mon Feb  8 12:22:48 2010
@@ -418,6 +418,8 @@
 
     /**
      * Gets the next token from the String.
+     * Equivalent to {@link #next()} except it returns null rather than
+     * throwing {@link NoSuchElementException} when no tokens remain.
      *
      * @return the next sequential token, or null when no more tokens are found
      */
@@ -525,9 +527,10 @@
     }
 
     /**
-     * Gets the next token. This method is equivalent to {@link #nextToken()}.
+     * Gets the next token.
      *
      * @return the next String token
+     * @throws NoSuchElementException if there are no more elements
      */
     public Object next() {
         if (hasNext()) {



Mime
View raw message