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