[jbosstools-commits] JBoss Tools SVN: r43888 - trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl.
jbosstools-commits at lists.jboss.org
jbosstools-commits at lists.jboss.org
Thu Sep 20 19:50:50 EDT 2012
Author: scabanovich
Date: 2012-09-20 19:50:49 -0400 (Thu, 20 Sep 2012)
New Revision: 43888
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/Libs.java
Log:
JBIDE-12479
https://issues.jboss.org/browse/JBIDE-12479
Cache unique Path objects.
Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/Libs.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/Libs.java 2012-09-20 23:50:05 UTC (rev 43887)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/Libs.java 2012-09-20 23:50:49 UTC (rev 43888)
@@ -36,6 +36,7 @@
import org.jboss.tools.common.model.plugin.ModelPlugin;
import org.jboss.tools.common.model.util.EclipseResourceUtil;
import org.jboss.tools.common.model.util.XModelObjectUtil;
+import org.jboss.tools.common.util.UniquePaths;
/**
*
@@ -299,7 +300,7 @@
paths2.clear();
if(paths != null) {
for (String p : paths) {
- paths2.put(new Path(p), p);
+ paths2.put(UniquePaths.getInstance().intern(new Path(p)), p);
}
}
}
More information about the jbosstools-commits
mailing list