mbien commented on code in PR #4555:
URL: https://github.com/apache/netbeans/pull/4555#discussion_r960117646
##########
ide/xml.catalog.ui/src/org/netbeans/modules/xml/catalog/CatalogRootNode.java:
##########
@@ -172,7 +172,7 @@ public HelpCtx getHelpCtx() {
private static class RootChildren extends Children.Keys implements
Comparator, PropertyChangeListener {
/** Contains CatalogReader instances. */
- private final TreeSet keys = new TreeSet(this);
+ private final Set keys = new TreeSet<>(this);
Review Comment:
I think this can be `Set<CatalogReader>` as the comment states if the item
is cast to `CatalogReader` further down in `createKeys(..)`.
--
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