changeset 8928:accd6ffd4b3f

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 df819e356901
children 9f624e115c6b d922c8aba2f8
files src/share/classes/java/lang/CharSequence.java src/share/classes/java/lang/String.java
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/lang/CharSequence.java	Tue Dec 03 14:36:45 2013 -0800
+++ b/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/src/share/classes/java/lang/String.java	Tue Dec 03 14:36:45 2013 -0800
+++ b/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
      *