You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2023/01/06 15:26:54 UTC

[GitHub] [netbeans] tbw777 opened a new pull request, #5225: Replaced old style collections creating with new List.of()/Set.of()/Map.of()

tbw777 opened a new pull request, #5225:
URL: https://github.com/apache/netbeans/pull/5225

   WARNING: this type of changes was made and can be made only on unmodifiable collections BENEFITS:
   1. Internal protected data. Example: LayerGeneratingProcessor.getSupportedAnnotationTypes() and similar return unmodifiable collections to protect content
   2. IDE side visual highlighting for values duplicates (for set/map)
   3. Less required imports
   4. Less mem usage
   5. Shortest form, for example: Collections.unmodifiableSet(new HashSet<String>(Arrays.asList(new String[] {... this line might be replaced by Set.of()
   


-- 
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


[GitHub] [netbeans] tbw777 closed pull request #5225: Replaced old style collections creating with new List.of()/Set.of()/Map.of()

Posted by GitBox <gi...@apache.org>.
tbw777 closed pull request #5225: Replaced old style collections creating with new List.of()/Set.of()/Map.of()
URL: https://github.com/apache/netbeans/pull/5225


-- 
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