On Fri, 15 Nov 2024 22:11:17 GMT, Roger Riggs <[email protected]> wrote:
> Removed use of SecurityManager to check permissions.
> Relaxed defensive copying of byte arrays (due to lack of SM)
src/java.base/share/classes/java/lang/String.java line 843:
> 841:
> 842: // Trim the given byte array to the given length
> 843: private static byte[] safeTrim(byte[] ba, int len) {
"safe" no longer carries meaning, this could just be "trim", "trimBuffer" or
"trimArray"
src/java.base/share/classes/java/lang/System.java line 1336:
> 1334: }
> 1335:
> 1336: private static Void checkPermission() {
Seems unused?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/22168#discussion_r1844623522
PR Review Comment: https://git.openjdk.org/jdk/pull/22168#discussion_r1844626212