[jbosstools-commits] JBoss Tools SVN: r43890 - trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core.
jbosstools-commits at lists.jboss.org
jbosstools-commits at lists.jboss.org
Thu Sep 20 19:58:05 EDT 2012
Author: scabanovich
Date: 2012-09-20 19:58:05 -0400 (Thu, 20 Sep 2012)
New Revision: 43890
Modified:
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/ELReference.java
Log:
JBIDE-12479
https://issues.jboss.org/browse/JBIDE-12479
Cache unique Path objects.
Modified: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/ELReference.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/ELReference.java 2012-09-20 23:56:14 UTC (rev 43889)
+++ trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/ELReference.java 2012-09-20 23:58:05 UTC (rev 43890)
@@ -32,6 +32,7 @@
import org.jboss.tools.common.el.core.parser.SyntaxError;
import org.jboss.tools.common.text.ITextSourceReference;
import org.jboss.tools.common.util.FileUtil;
+import org.jboss.tools.common.util.UniquePaths;
import org.w3c.dom.Element;
/**
@@ -132,7 +133,7 @@
* @param path the path to set
*/
public void setPath(IPath path) {
- this.path = path;
+ this.path = UniquePaths.getInstance().intern(path);
}
public String getSourceText() {
More information about the jbosstools-commits
mailing list