Index: java/lang/String.java =================================================================== RCS file: /cvsroot/classpath/classpath/java/lang/String.java,v retrieving revision 1.57 diff -u -b -B -r1.57 String.java --- java/lang/String.java 12 Jun 2004 02:29:46 -0000 1.57 +++ java/lang/String.java 22 Jul 2004 08:43:05 -0000 @@ -70,8 +70,8 @@ * literal in the object stream. * * @author Paul N. Fisher - * @author Eric Blake - * @author Per Bothner + * @author Eric Blake (address@hidden) + * @author Per Bothner (address@hidden) * @since 1.0 * @status updated to 1.4; but could use better data sharing via offset field */ @@ -223,7 +223,7 @@ * @param count the number of characters from data to copy * @throws NullPointerException if data is null * @throws IndexOutOfBoundsException if (offset < 0 || count < 0 - * || offset + count > data.length) + * || offset + count > data.length) * (while unspecified, this is a StringIndexOutOfBoundsException) */ public String(char[] data, int offset, int count) @@ -237,7 +237,7 @@ * corresponding byte b, is created in the new String as if by performing: * *
-   * c = (char) (((hibyte & 0xff) << 8) | (b & 0xff))
+   * c = (char) (((hibyte & 0xff) << 8) | (b & 0xff))
    * 
* * @param ascii array of integer values @@ -246,7 +246,7 @@ * @param count the number of characters from ascii to copy * @throws NullPointerException if ascii is null * @throws IndexOutOfBoundsException if (offset < 0 || count < 0 - * || offset + count > ascii.length) + * || offset + count > ascii.length) * (while unspecified, this is a StringIndexOutOfBoundsException) * @see #String(byte[]) * @see #String(byte[], String) @@ -274,7 +274,7 @@ * as if by performing: * *
-   * c = (char) (((hibyte & 0xff) << 8) | (b & 0xff))
+   * c = (char) (((hibyte & 0xff) << 8) | (b & 0xff))
    * 
* * @param ascii array of integer values @@ -788,7 +788,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 ooffset index to start comparison at for other + * @param oofset 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 @@ -1034,11 +1034,11 @@ * Creates a substring of this String, starting at a specified index * and ending at one character before a specified index. * - * @param beginIndex index to start substring (inclusive, base 0) - * @param endIndex index to end at (exclusive) + * @param begin index to start substring (inclusive, base 0) + * @param end index to end at (exclusive) * @return new String which is a substring of this String * @throws IndexOutOfBoundsException if begin < 0 || end > length() - * || begin > end (while unspecified, this is a + * || begin > end (while unspecified, this is a * StringIndexOutOfBoundsException) */ public String substring(int beginIndex, int endIndex) @@ -1056,18 +1056,18 @@ /** * Creates a substring of this String, starting at a specified index * and ending at one character before a specified index. This behaves like - * substring(beginIndex, endIndex). + * substring(begin, end). * - * @param beginIndex index to start substring (inclusive, base 0) - * @param endIndex index to end at (exclusive) + * @param begin index to start substring (inclusive, base 0) + * @param end index to end at (exclusive) * @return new String which is a substring of this String * @throws IndexOutOfBoundsException if begin < 0 || end > length() - * || begin > end + * || begin > end * @since 1.4 */ - public CharSequence subSequence(int beginIndex, int endIndex) + public CharSequence subSequence(int begin, int end) { - return substring(beginIndex, endIndex); + return substring(begin, end); } /** @@ -1470,7 +1470,7 @@ * @return String containing the chars from data[offset..offset+count] * @throws NullPointerException if data is null * @throws IndexOutOfBoundsException if (offset < 0 || count < 0 - * || offset + count > data.length) + * || offset + count > data.length) * (while unspecified, this is a StringIndexOutOfBoundsException) * @see #String(char[], int, int) */ @@ -1490,7 +1490,7 @@ * @return String containing the chars from data[offset..offset+count] * @throws NullPointerException if data is null * @throws IndexOutOfBoundsException if (offset < 0 || count < 0 - * || offset + count > data.length) + * || offset + count > data.length) * (while unspecified, this is a StringIndexOutOfBoundsException) * @see #String(char[], int, int) */ @@ -1511,7 +1511,7 @@ */ public static String copyValueOf(char[] data) { - return new String(data, 0, data.length, false); + return copyValueOf (data, 0, data.length); } /** @@ -1671,4 +1671,4 @@ return value; } -} // class String +}