vieiro commented on code in PR #3976:
URL: https://github.com/apache/netbeans/pull/3976#discussion_r850714303
##########
platform/editor.mimelookup/src/org/netbeans/api/editor/mimelookup/MimePath.java:
##########
@@ -131,7 +131,7 @@ public final class MimePath {
"video" //NOI18N
));
- private static final Map<String,Reference<MimePath>> string2mimePath = new
HashMap<String,Reference<MimePath>>();
+ private static final Map<String,Reference<MimePath>> string2mimePath = new
HashMap<>();
Review Comment:
@matthiasblaesing `ConcurrentHashMap` is more performant. I assume we won't
be [storying nulls as
values](https://www.baeldung.com/java-synchronizedmap-vs-concurrenthashmap#2-null-support)
though.
--
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