Fixes #136 - two threads accessing package name lists

This commit is contained in:
Andy Clement
2015-09-23 13:19:44 -07:00
parent fd571a8310
commit 409f95498a

View File

@@ -597,9 +597,9 @@ public class TypeRegistry {
* If a type is found to come from a jar, we put the package name in here, which should save us looking for types in
* the same package. This does pre-req that there are no split packages.
*/
private List<String> packagesFound = new ArrayList<String>();
private List<String> packagesFound = Collections.synchronizedList(new ArrayList<String>());
private List<String> packagesNotFound = new ArrayList<String>();
private List<String> packagesNotFound = Collections.synchronizedList(new ArrayList<String>());
public static enum CouldBeReloadableDecision {