classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] FYI: minor API doc fixes in java.lang.*


From: David Gilbert
Subject: [cp-patches] FYI: minor API doc fixes in java.lang.*
Date: Mon, 11 Jul 2005 23:31:26 +0000
User-agent: Mozilla Thunderbird 1.0.2 (X11/20050426)

I committed this patch:

2005-07-11  David Gilbert  <address@hidden>

        * java/lang/IllegalAccessException.java: fixed minor API doc errors,
        * java/lang/String.java: likewise.

Regards,

Dave Gilbert

Index: java/lang/IllegalAccessException.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/lang/IllegalAccessException.java,v
retrieving revision 1.10
diff -u -r1.10 IllegalAccessException.java
--- java/lang/IllegalAccessException.java       2 Jul 2005 20:32:38 -0000       
1.10
+++ java/lang/IllegalAccessException.java       11 Jul 2005 22:24:46 -0000
@@ -39,6 +39,10 @@
 
 package java.lang;
 
+import java.lang.reflect.Constructor;
+import java.lang.reflect.Field;
+import java.lang.reflect.Method;
+
 /**
  * Thrown whenever a reflective method tries to do something that the
  * compiler would not allow.  For example, using reflection to set a private
Index: java/lang/String.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/lang/String.java,v
retrieving revision 1.66
diff -u -r1.66 String.java
--- java/lang/String.java       2 Jul 2005 20:32:39 -0000       1.66
+++ java/lang/String.java       11 Jul 2005 22:24:49 -0000
@@ -40,20 +40,24 @@
 package java.lang;
 
 import gnu.java.lang.CharData;
+
+import java.io.Serializable;
+import java.io.UnsupportedEncodingException;
+import java.nio.ByteBuffer;
+import java.nio.CharBuffer;
+import java.nio.charset.CharacterCodingException;
 import java.nio.charset.Charset;
-import java.nio.charset.CharsetEncoder;
 import java.nio.charset.CharsetDecoder;
+import java.nio.charset.CharsetEncoder;
 import java.nio.charset.CodingErrorAction;
-import java.nio.charset.CharacterCodingException;
 import java.nio.charset.IllegalCharsetNameException;
 import java.nio.charset.UnsupportedCharsetException;
-import java.nio.ByteBuffer;
-import java.nio.CharBuffer;
-import java.io.Serializable;
-import java.io.UnsupportedEncodingException;
+import java.text.Collator;
 import java.util.Comparator;
 import java.util.Locale;
+import java.util.regex.Matcher;
 import java.util.regex.Pattern;
+import java.util.regex.PatternSyntaxException;
 
 /**
  * Strings represent an immutable set of characters.  All String literals
@@ -861,7 +865,7 @@
    * @param ignoreCase true if case should be ignored in comparision
    * @param toffset index to start comparison at for this String
    * @param other String to compare region to this String
-   * @param oofset index to start comparison at for other
+   * @param ooffset index to start comparison at for other
    * @param len number of characters to compare
    * @return true if regions match, false otherwise
    * @throws NullPointerException if other is null
@@ -1107,8 +1111,8 @@
    * Creates a substring of this String, starting at a specified index
    * and ending at one character before a specified index.
    *
-   * @param begin index to start substring (inclusive, base 0)
-   * @param end index to end at (exclusive)
+   * @param beginIndex index to start substring (inclusive, base 0)
+   * @param endIndex index to end at (exclusive)
    * @return new String which is a substring of this String
    * @throws IndexOutOfBoundsException if begin &lt; 0 || end &gt; length()
    *         || begin &gt; end (while unspecified, this is a
@@ -1457,7 +1461,7 @@
    * Trims all characters less than or equal to <code>'\u0020'</code>
    * (<code>' '</code>) from the beginning and end of this String. This
    * includes many, but not all, ASCII control characters, and all
-   * address@hidden Character#whitespace(char)}.
+   * address@hidden Character#isWhitespace(char)}.
    *
    * @return new trimmed String, or this if nothing trimmed
    */

reply via email to

[Prev in Thread] Current Thread [Next in Thread]