mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8200124: Various cleanups in jar/zip
Reviewed-by: sherman, ulfzibis
This commit is contained in:
parent
6f37b4cbce
commit
08adfe31b3
4 changed files with 8 additions and 11 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue