mbien opened a new pull request #3166: URL: https://github.com/apache/netbeans/pull/3166
The performance inspection currently advises to refactor `col.toArray(new T[0])` into `col.toArray(new T[col.size])` which is exactly the wrong way around for modern Java[1]. Updated it to refactor to `T[]::new` on JDK 11+ and `new T[0]` for older JDKs (determined by the project src lvl). [1] https://shipilev.net/blog/2016/arrays-wisdom-ancients/#_conclusion -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
