errael commented on code in PR #5332:
URL: https://github.com/apache/netbeans/pull/5332#discussion_r1108754685


##########
ide/bugtracking/src/org/netbeans/modules/bugtracking/RepositoryImpl.java:
##########
@@ -116,7 +116,7 @@ public void propertyChange(PropertyChangeEvent evt) {
                     }
                     Collection<QueryImpl> queries = new 
ArrayList<>(getQueries());
                     synchronized(queryMap) {
-                        List<Q> toRemove = new LinkedList<Q>();
+                        Set<Q> toRemove = new HashSet<>();

Review Comment:
   > #5464
   
   @tbw777 Not sure what this reference is for. 
   
   And there was a bit of miscommunication. From what I've read, using 
`ArrayList` is almost always a win over using `LinkedList`. I'm not familiar 
with this code, it's unlikely to be an issue either way in this case.



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