You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "vieiro (via GitHub)" <gi...@apache.org> on 2023/02/18 09:04:59 UTC

[GitHub] [netbeans] vieiro commented on pull request #5504: Removed unnecessary new Class[] {} calls. Multicommit

vieiro commented on PR #5504:
URL: https://github.com/apache/netbeans/pull/5504#issuecomment-1435526726

   [Every time we use varargs, the Java compiler creates an array to hold the given parameters.](https://www.baeldung.com/java-varargs#1-safe-usage)
   
   As a consequence, you're not really "Removed unnecessary new Class[] {} calls.", as the compiler will add those for you.
   
   I can't see enough value on this PR.


-- 
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: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists