Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorAnton Leherbauer2009-02-04 12:19:40 +0000
committerAnton Leherbauer2009-02-04 12:19:40 +0000
commit76f62916b84861ad1bc9f813152b99a670660d79 (patch)
tree4f9f9d9bc9e05371b7cd8416d0fe9660cafb8c75 /build
parentf6b84f948eccda3cc23885d183a014df15bf9382 (diff)
downloadorg.eclipse.cdt-76f62916b84861ad1bc9f813152b99a670660d79.tar.gz
org.eclipse.cdt-76f62916b84861ad1bc9f813152b99a670660d79.tar.xz
org.eclipse.cdt-76f62916b84861ad1bc9f813152b99a670660d79.zip
Bug 228236 - ConcurrentModificationException when opening source file - follow up
Diffstat (limited to 'build')
-rw-r--r--build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig2/ScannerConfigProfileManager.java24
1 files changed, 11 insertions, 13 deletions
diff --git a/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig2/ScannerConfigProfileManager.java b/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig2/ScannerConfigProfileManager.java
index ccac962bc48..9997001b06c 100644
--- a/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig2/ScannerConfigProfileManager.java
+++ b/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig2/ScannerConfigProfileManager.java
@@ -150,21 +150,19 @@ public final class ScannerConfigProfileManager {
}
/**
- * @return
+ * @return a list of available scanner config profile id's.
*/
public List<String> getProfileIds() {
- if (profileIds == null) {
- synchronized (fLock) {
- if (profileIds == null) {
- profileIds = new ArrayList<String>();
- IExtensionPoint extension = Platform.getExtensionRegistry().
- getExtensionPoint(MakeCorePlugin.PLUGIN_ID, ScannerConfigProfileManager.SI_PROFILE_SIMPLE_ID);
- if (extension != null) {
- IExtension[] extensions = extension.getExtensions();
- for (int i = 0; i < extensions.length; ++i) {
- String rProfileId = extensions[i].getUniqueIdentifier();
- profileIds.add(rProfileId);
- }
+ synchronized (fLock) {
+ if (profileIds == null) {
+ profileIds = new ArrayList<String>();
+ IExtensionPoint extension = Platform.getExtensionRegistry().
+ getExtensionPoint(MakeCorePlugin.PLUGIN_ID, ScannerConfigProfileManager.SI_PROFILE_SIMPLE_ID);
+ if (extension != null) {
+ IExtension[] extensions = extension.getExtensions();
+ for (int i = 0; i < extensions.length; ++i) {
+ String rProfileId = extensions[i].getUniqueIdentifier();
+ profileIds.add(rProfileId);
}
}
}

Back to the top