Optimization

This commit is contained in:
Andrea Cavalli 2023-03-27 23:30:52 +02:00
parent 9da2c8f5d9
commit 9faebd75a0

View File

@ -460,6 +460,6 @@ public class SafeDataInputStream extends SafeFilterInputStream implements SafeDa
data = new byte[utflen];
}
in.readFully(data, 0, utflen);
return new String(data, StandardCharsets.UTF_8);
return new String(data, 0, utflen, StandardCharsets.UTF_8);
}
}