changeset 55013:842b45d8e25e

8065262: (bf spec) CharBuffer.chars() should make it clearer that the sequence starts from the buffer position Reviewed-by: alanb, darcy, rriggs
author bpb
date Tue, 19 Feb 2019 13:05:16 -0800
parents c419f0c1c355
children 45e6ec6fa679
files src/java.base/share/classes/java/nio/X-Buffer.java.template
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/java/nio/X-Buffer.java.template	Tue Feb 19 12:46:22 2019 -0800
+++ b/src/java.base/share/classes/java/nio/X-Buffer.java.template	Tue Feb 19 13:05:16 2019 -0800
@@ -209,6 +209,8 @@
  * <p> This class implements the {@link CharSequence} interface so that
  * character buffers may be used wherever character sequences are accepted, for
  * example in the regular-expression package {@link java.util.regex}.
+ * The methods defined by {@code CharSequence} operate relative to the current
+ * position of the buffer when they are invoked.
  * </p>
  *
 #end[char]