changeset 21959:0767c3d7c550

8028757: CharSequence.subSequence improperly requires a "new" CharSequence be returned Reviewed-by: alanb, darcy, mduigou
author smarks
date Tue, 03 Dec 2013 15:52:16 -0800
parents 50d3bc97c224
children 277d5c6b2172 fb94f324e7f3
files jdk/src/share/classes/java/lang/CharSequence.java jdk/src/share/classes/java/lang/String.java
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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
      *