8200124: Various cleanups in jar/zip

Reviewed-by: sherman, ulfzibis
This commit is contained in:
Martin Buchholz 2018-03-28 21:14:03 -07:00
parent 6f37b4cbce
commit 08adfe31b3
4 changed files with 8 additions and 11 deletions

View file

@ -77,8 +77,7 @@ class ZipCoder {
String toString(byte[] ba, int off, int length) {
try {
return decoder().decode(ByteBuffer.wrap(ba, off, length)).toString();
return decoder().decode(ByteBuffer.wrap(ba, off, length)).toString();
} catch (CharacterCodingException x) {
throw new IllegalArgumentException(x);
}