Tweak ParsableByteArray#readLine javadoc

Don't refer to the "system's default charset", just specify UTF-8
explicitly.

PiperOrigin-RevId: 343839878
This commit is contained in:
ibaker 2020-11-23 14:36:38 +00:00 committed by kim-vde
parent 6c31e34528
commit b562adf26c

View File

@ -526,8 +526,8 @@ public final class ParsableByteArray {
* Reads a line of text. * Reads a line of text.
* *
* <p>A line is considered to be terminated by any one of a carriage return ('\r'), a line feed * <p>A line is considered to be terminated by any one of a carriage return ('\r'), a line feed
* ('\n'), or a carriage return followed immediately by a line feed ('\r\n'). The system's default * ('\n'), or a carriage return followed immediately by a line feed ('\r\n'). The UTF-8 charset is
* charset (UTF-8) is used. This method discards leading UTF-8 byte order marks, if present. * used. This method discards leading UTF-8 byte order marks, if present.
* *
* @return The line not including any line-termination characters, or null if the end of the data * @return The line not including any line-termination characters, or null if the end of the data
* has already been reached. * has already been reached.