8028757: CharSequence.subSequence improperly requires a "new" CharSequence be returned
authorsmarks
Tue, 03 Dec 2013 15:52:16 -0800
changeset 21959 0767c3d7c550
parent 21958 50d3bc97c224
child 21960 277d5c6b2172
child 21962 fb94f324e7f3
8028757: CharSequence.subSequence improperly requires a "new" CharSequence be returned Reviewed-by: alanb, darcy, mduigou
jdk/src/share/classes/java/lang/CharSequence.java
jdk/src/share/classes/java/lang/String.java
--- a/jdk/src/share/classes/java/lang/CharSequence.java	Tue Dec 03 14:36:45 2013 -0800
+++ b/jdk/src/share/classes/java/lang/CharSequence.java	Tue Dec 03 15:52:16 2013 -0800
@@ -87,7 +87,7 @@
     char charAt(int index);
 
     /**
-     * Returns a new <code>CharSequence</code> that is a subsequence of this sequence.
+     * Returns a <code>CharSequence</code> that is a subsequence of this sequence.
      * The subsequence starts with the <code>char</code> value at the specified index and
      * ends with the <code>char</code> value at index <tt>end - 1</tt>.  The length
      * (in <code>char</code>s) of the
--- a/jdk/src/share/classes/java/lang/String.java	Tue Dec 03 14:36:45 2013 -0800
+++ b/jdk/src/share/classes/java/lang/String.java	Tue Dec 03 15:52:16 2013 -0800
@@ -1958,7 +1958,7 @@
     }
 
     /**
-     * Returns a new character sequence that is a subsequence of this sequence.
+     * Returns a character sequence that is a subsequence of this sequence.
      *
      * <p> An invocation of this method of the form
      *