8327225: Revert DataInputStream.readUTF to static final

Reviewed-by: rriggs, bpb, gli
This commit is contained in:
Claes Redestad 2024-03-05 13:31:08 +00:00
parent a089ed2b92
commit c653e67c0f

View File

@ -571,7 +571,7 @@ loop: while (true) {
* valid modified UTF-8 encoding of a Unicode string.
* @see java.io.DataInputStream#readUnsignedShort()
*/
public static String readUTF(DataInput in) throws IOException {
public static final String readUTF(DataInput in) throws IOException {
int utflen = in.readUnsignedShort();
byte[] bytearr;
char[] chararr;