-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P3
-
Affects Version/s: 8.1.0
-
Component/s: Mission Control Client
The method createSingleton() in PresetRepositoryFactory.java relies on double-checked locking, an incorrect idiom that does not achieve the intended effect.
private static PresetRepository singleton; public static PresetRepository createSingleton() { if (singleton == null) { synchronized (PresetRepositoryFactory.class) { if (singleton == null) { singleton = create(); } } } return singleton;