mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-05 08:46:02 +02:00
Bug 228236 - ConcurrentModificationException when opening source file - again
This commit is contained in:
parent
9220a1152e
commit
6c3c6c4eae
1 changed files with 11 additions and 13 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright (c) 2004, 2008 IBM Corporation and others.
|
* Copyright (c) 2004, 2009 IBM Corporation and others.
|
||||||
* All rights reserved. This program and the accompanying materials
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* which accompanies this distribution, and is available at
|
||||||
|
@ -171,7 +171,7 @@ public final class ScannerConfigProfileManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* returns the list od profile IDs supported for this context
|
* returns the list of profile IDs supported for this context
|
||||||
* @param context
|
* @param context
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
@ -179,7 +179,6 @@ public final class ScannerConfigProfileManager {
|
||||||
if(context.isDefaultContext() || context.getProject() == null)
|
if(context.isDefaultContext() || context.getProject() == null)
|
||||||
return getProfileIds();
|
return getProfileIds();
|
||||||
|
|
||||||
if(contextAwareProfileIds == null){
|
|
||||||
synchronized (fLock) {
|
synchronized (fLock) {
|
||||||
if(contextAwareProfileIds == null){
|
if(contextAwareProfileIds == null){
|
||||||
contextAwareProfileIds = new ArrayList<String>();
|
contextAwareProfileIds = new ArrayList<String>();
|
||||||
|
@ -193,7 +192,6 @@ public final class ScannerConfigProfileManager {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return Collections.unmodifiableList(contextAwareProfileIds);
|
return Collections.unmodifiableList(contextAwareProfileIds);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue