Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
Description
As mentioned by Gilles in user ML[1], the piece of code example has thread safety issue.
One possibility is use Collections.synchronizedList() to create a thread-safety list and remove the synchronized keyword.