Skip to content

Commit

Permalink
Tweak ParsableByteArray#readLine javadoc
Browse files Browse the repository at this point in the history
Don't refer to the "system's default charset", just specify UTF-8
explicitly.

PiperOrigin-RevId: 343839878
  • Loading branch information
icbaker committed Nov 30, 2020
1 parent 3a8524d commit a04400c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -515,8 +515,8 @@ public String readNullTerminatedString() {
* Reads a line of text.
*
* <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
* charset (UTF-8) is used. This method discards leading UTF-8 byte order marks, if present.
* ('\n'), or a carriage return followed immediately by a line feed ('\r\n'). The UTF-8 charset is
* 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
* has already been reached.
Expand Down

0 comments on commit a04400c

Please sign in to comment.