# HG changeset patch
# User smarks
# Date 1386114736 28800
# Node ID 0767c3d7c550acc2f2278a6d5ecdcaa4f54d7f0f
# Parent 50d3bc97c22447f65f4ed2b415e549a3b6c7a405
8028757: CharSequence.subSequence improperly requires a "new" CharSequence be returned
Reviewed-by: alanb, darcy, mduigou
diff -r 50d3bc97c224 -r 0767c3d7c550 jdk/src/share/classes/java/lang/CharSequence.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 CharSequence
that is a subsequence of this sequence.
+ * Returns a CharSequence
that is a subsequence of this sequence.
* The subsequence starts with the char
value at the specified index and
* ends with the char
value at index end - 1. The length
* (in char
s) of the
diff -r 50d3bc97c224 -r 0767c3d7c550 jdk/src/share/classes/java/lang/String.java
--- 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.
*
*
An invocation of this method of the form *