mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8259842: Remove Result cache from StringCoding
Reviewed-by: naoto, plevart, rriggs
This commit is contained in:
parent
d066f2b06c
commit
58ceb25443
5 changed files with 1000 additions and 1122 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1994, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1994, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -2262,19 +2262,19 @@ public final class System {
|
|||
}
|
||||
|
||||
public String newStringNoRepl(byte[] bytes, Charset cs) throws CharacterCodingException {
|
||||
return StringCoding.newStringNoRepl(bytes, cs);
|
||||
return String.newStringNoRepl(bytes, cs);
|
||||
}
|
||||
|
||||
public byte[] getBytesNoRepl(String s, Charset cs) throws CharacterCodingException {
|
||||
return StringCoding.getBytesNoRepl(s, cs);
|
||||
return String.getBytesNoRepl(s, cs);
|
||||
}
|
||||
|
||||
public String newStringUTF8NoRepl(byte[] bytes, int off, int len) {
|
||||
return StringCoding.newStringUTF8NoRepl(bytes, off, len);
|
||||
return String.newStringUTF8NoRepl(bytes, off, len);
|
||||
}
|
||||
|
||||
public byte[] getBytesUTF8NoRepl(String s) {
|
||||
return StringCoding.getBytesUTF8NoRepl(s);
|
||||
return String.getBytesUTF8NoRepl(s);
|
||||
}
|
||||
|
||||
public void setCause(Throwable t, Throwable cause) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue