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:
parent
f6b84f948e
commit
76f62916b8
1 changed files with 11 additions and 13 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue