mbien commented on code in PR #9050:
URL: https://github.com/apache/netbeans/pull/9050#discussion_r2573343279


##########
ide/jumpto/src/org/netbeans/modules/jumpto/type/GoToTypeAction.java:
##########
@@ -498,12 +495,13 @@ public void run() {
                     caseSensitive,
                     GoToSettings.getDefault().isSortingPreferOpenProjects());
             itemsComparator = ic;
-            final Models.MutableListModel baseModel = Models.mutable(
+            final Models.MutableListModel<TypeDescriptor> baseModel = 
Models.mutable(
                 ic,
                 currentSearch.resetFilter(),
                 null);
-            final ListModel model = typeFilter != null ?
-                    FilteredListModel.create(baseModel, new 
FilterAdaptor(typeFilter), NbBundle.getMessage(GoToTypeAction.class, 
"LBL_Computing")) :
+            @SuppressWarnings("unchecked")
+            final ListModel<TypeDescriptor> model = typeFilter != null ?
+                    FilteredListModel.create(baseModel, new 
FilterAdaptor(typeFilter), null) :
                     baseModel;

Review Comment:
   this was what passed a String into the model + replaced the typed model with 
it a few lines later. The initial value is now null since it wouldn't show up 
anyway.



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

Reply via email to