Author: scabanovich
Date: 2011-11-08 14:10:15 -0500 (Tue, 08 Nov 2011)
New Revision: 36229
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/project/ext/AbstractClassPathMonitor.java
Log:
JBIDE-10111
https://issues.jboss.org/browse/JBIDE-10111
Synchronization of set 'processedPaths' is improved.
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/project/ext/AbstractClassPathMonitor.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/project/ext/AbstractClassPathMonitor.java 2011-11-08
19:09:59 UTC (rev 36228)
+++
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/project/ext/AbstractClassPathMonitor.java 2011-11-08
19:10:15 UTC (rev 36229)
@@ -80,7 +80,7 @@
public void pathLoaded(IPath path) {
String p = paths2.get(path);
- if(p != null) synchronized (processedPaths) {
+ if(p != null) synchronized (this) {
processedPaths.add(p);
}
}
@@ -97,14 +97,14 @@
paths = new ArrayList<String>();
loaded = false;
if(paths2 != null) paths2.clear();
- synchronized (processedPaths) {
+ synchronized (this) {
processedPaths.clear();
}
}
protected List<String> syncProcessedPaths() {
ArrayList<String> removed = new ArrayList<String>();
- synchronized (processedPaths) {
+ synchronized (this) {
Iterator<String> it = processedPaths.iterator();
while(it.hasNext()) {
String p = it.next();
@@ -117,7 +117,7 @@
}
protected boolean requestForLoad(String p) {
- synchronized (processedPaths) {
+ synchronized (this) {
return processedPaths.add(p);
}
}