8345286: Remove use of SecurityManager API from misc areas

Reviewed-by: alanb, kevinw, sgehwolf
This commit is contained in:
Jaikiran Pai 2024-12-04 09:23:57 +00:00
parent 38927fc590
commit 3d49665b85
22 changed files with 43 additions and 261 deletions

View file

@ -549,7 +549,6 @@ public final class String
* Important: parameter order of this method is deliberately changed in order to
* disambiguate it against other similar methods of this class.
*/
@SuppressWarnings("removal")
private String(Charset charset, byte[] bytes, int offset, int length) {
if (length == 0) {
this.value = "".value;
@ -787,7 +786,6 @@ public final class String
}
}
@SuppressWarnings("removal")
private static String newStringNoRepl1(byte[] src, Charset cs) {
int len = src.length;
if (len == 0) {