harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r627492 - /harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/String.java
Date Wed, 13 Feb 2008 15:52:14 GMT
Author: tellison
Date: Wed Feb 13 07:52:12 2008
New Revision: 627492

URL: http://svn.apache.org/viewvc?rev=627492&view=rev
Log:
Clarify comment for String#trim()

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/String.java

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/String.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/String.java?rev=627492&r1=627491&r2=627492&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/String.java (original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/String.java Wed Feb
13 07:52:12 2008
@@ -1670,11 +1670,16 @@
     }
 
     /**
-     * Copies this String removing white space characters from the beginning and
-     * end of the string.
+     * Answers a copy of this String with white space characters at the
+     * beginning and end removed.
      * 
-     * @return a new String with characters <code><= &#92;u0020</code>
removed
-     *         from the beginning and the end
+     * If the receiver has no leading or trailing blanks then it returns itself.
+     * 
+     * Blanks are defined as characters with Unicode value
+     * <code><= &#92;u0020</code>.
+     * 
+     * @return a new String with leading and trailing blanks removed, or this
+     *         string if there are none.
      */
     public String trim() {
         int start = offset, last = offset + count - 1;



Mime
View raw message