lkishalmi opened a new pull request, #6689:
URL: https://github.com/apache/netbeans/pull/6689

   Just happened to bump into this CME, while working on Jenkinsfile support. 
It seems this has been reported as #5148.
   
   It seems the CME happens as the `methods` list is a live one passed over as 
parameter, so the collection can be changed during the time of 
`methods.forEach(tm -> removed.remove(tm))`. The solution would be to copy that 
collection before do the remove work. Interestingly we do have a copy of right 
after that call, so a simple reorder would solve the issue. I've just replaced 
the `forEach` call with `keySet().removeAll` as I think that reads better.
   
   Otherwise the change is trivial. If it does not make into NB20, then I'd 
rebase this for master.


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