On Fri, 15 Nov 2024 22:41:22 GMT, Eirik Bjørsnøs <eir...@openjdk.org> 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"

Right, in other previously prepared changes, this was renamed to trim.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/22168#discussion_r1844932173

Reply via email to