Author: scabanovich
Date: 2011-10-14 20:34:31 -0400 (Fri, 14 Oct 2011)
New Revision: 35681
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/JarAccessFactory.java
Log:
JBIDE-9917
https://issues.jboss.org/browse/JBIDE-9917
Method synchronization.
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/JarAccessFactory.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/JarAccessFactory.java 2011-10-14
23:55:54 UTC (rev 35680)
+++
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/JarAccessFactory.java 2011-10-15
00:34:31 UTC (rev 35681)
@@ -7,7 +7,7 @@
static Map<String, JarAccess> jars = new HashMap<String, JarAccess>();
- public static JarAccess getJarAccess(String location, JarSystemImpl context) {
+ public synchronized static JarAccess getJarAccess(String location, JarSystemImpl
context) {
JarAccess jar = jars.get(location);
if(jar == null) {
jar = new JarAccess();