removed dangerous instance of double checked locking in settingsmanager
@@ -12,14 +12,10 @@ public class SettingsManager {
private static SettingsManager settingsManager = null;
- public static SettingsManager getIntance() {
- if (settingsManager == null) {
- synchronized (SettingsManager.class) {
+ public static synchronized SettingsManager getIntance() {
if (settingsManager == null) {
settingsManager = new SettingsManager();
}
- }
- }
return settingsManager;
}
