Commit 9ac84f8f authored by Patrick Strawderman's avatar Patrick Strawderman Committed by GitHub

Fix erroneous comment regarding String.substring

Since Java 7, Strings produced with String.substring do not share byte arrays.
parent 3b001ca6
...@@ -52,9 +52,9 @@ import java.util.NoSuchElementException; ...@@ -52,9 +52,9 @@ import java.util.NoSuchElementException;
/** /**
* Immutable sequence of bytes. Substring is supported by sharing the reference * Immutable sequence of bytes. Substring is supported by sharing the reference
* to the immutable underlying bytes, as with {@link String}. Concatenation is * to the immutable underlying bytes. Concatenation is likewise supported
* likewise supported without copying (long strings) by building a tree of * without copying (long strings) by building a tree of pieces in
* pieces in {@link RopeByteString}. * {@link RopeByteString}.
* <p> * <p>
* Like {@link String}, the contents of a {@link ByteString} can never be * Like {@link String}, the contents of a {@link ByteString} can never be
* observed to change, not even in the presence of a data race or incorrect * observed to change, not even in the presence of a data race or incorrect
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment