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 2022/09/01 00:11:37 UTC

[GitHub] [netbeans] mbien commented on a diff in pull request #4555: Cleanup a bunch of raw type error msgs related to TreeSet.

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