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


##########
ide/jumpto/src/org/netbeans/modules/jumpto/symbol/ContentProviderImpl.java:
##########
@@ -391,8 +391,6 @@ public void run() {
                     if (done || resultChanged) {
                         lastSize = newSize[0];
                         lastProvCount = newProvCount;
-                        model.remove(toRemove);
-                        model.add(toAdd);

Review Comment:
   only took a quick glance at it since the sun is shining:
   
   model changes happen in `Models#casData` which posts the task onto EDT. 
Since its a queue, those two calls would run before the `invokeLater()` of L408 
(original file). If I see this correctly, the modification here is redundant 
and might have other side effects - everything should be on EDT already. Should 
be easy to verify by adding a few printlns.



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