Re: Unneeded array assignments in core libs

2023-11-30 Thread Naoto Sato
PR submitted. I was pleasantly surprised how quickly bugreport.java.com turned reports into issues. Naoto On 11/29/23 2:18 PM, Anthony Goubard wrote: Thanks for the answers. I've created an issue in bugreport.java.com

Re: Unneeded array assignments in core libs

2023-11-29 Thread Anthony Goubard
Thanks for the answers. I've created an issue in bugreport.java.com with internal review ID : 9076287 Hope that helps, Anthony Le mer. 29 nov. 2023 à 21:55, Roger Riggs a écrit : > Hi Anthony, > > Go ahead a file a single bug (for the two cases). > That code may have been written before Arrays.

Re: Unneeded array assignments in core libs

2023-11-29 Thread Roger Riggs
Hi Anthony, Go ahead a file a single bug (for the two cases). That code may have been written before Arrays.fill(...). Regards, Roger On 11/29/23 7:54 AM, Anthony Goubard wrote: Hello,  Last Friday, I decided to look if there were some classes that did unneeded array assignments (e.g. to 0 /

Unneeded array assignments in core libs

2023-11-29 Thread Anthony Goubard
Hello, Last Friday, I decided to look if there were some classes that did unneeded array assignments (e.g. to 0 / 0.0f / null / false) in the JDK. I've found a few places and in particular 2 places where it's done in big for loops (looping more than 500 times). So I thought you might be interes