8028757: CharSequence.subSequence improperly requires a "new" CharSequence be returned
Reviewed-by: alanb, darcy, mduigou
--- 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
*