mbien commented on PR #8794:
URL: https://github.com/apache/netbeans/pull/8794#issuecomment-3358538094

   > Just a question. Were the copy made to avoid some concurrent modification 
exceptions?
   
   I don't think so. Before we had `for(String context : contexts)` which 
created the two Sets. Now we have `contexts.contains()`. 
   
   The for-loop would be able to throw CMEs too if the list is modified while 
iterating. I am also pretty sure that the context list is immutable. (it lists 
all the places where a abbreviation like "psvm" can be used, e.g CLASS level)


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