1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-31 12:55:40 +02:00

Bug 228236 - ConcurrentModificationException when opening source file - follow up

This commit is contained in:
Anton Leherbauer 2009-02-04 12:19:40 +00:00
parent f6b84f948e
commit 76f62916b8

View file

@ -150,10 +150,9 @@ public final class ScannerConfigProfileManager {
} }
/** /**
* @return * @return a list of available scanner config profile id's.
*/ */
public List<String> getProfileIds() { public List<String> getProfileIds() {
if (profileIds == null) {
synchronized (fLock) { synchronized (fLock) {
if (profileIds == null) { if (profileIds == null) {
profileIds = new ArrayList<String>(); profileIds = new ArrayList<String>();
@ -168,7 +167,6 @@ public final class ScannerConfigProfileManager {
} }
} }
} }
}
return Collections.unmodifiableList(profileIds); return Collections.unmodifiableList(profileIds);
} }