[jbosstools-commits] JBoss Tools SVN: r43889 - trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Thu Sep 20 19:56:14 EDT 2012


Author: scabanovich
Date: 2012-09-20 19:56:14 -0400 (Thu, 20 Sep 2012)
New Revision: 43889

Modified:
   trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/KbObject.java
   trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/KbProject.java
Log:
JBIDE-12479
https://issues.jboss.org/browse/JBIDE-12479
Cache unique Path objects.


Modified: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/KbObject.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/KbObject.java	2012-09-20 23:50:49 UTC (rev 43888)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/KbObject.java	2012-09-20 23:56:14 UTC (rev 43889)
@@ -55,7 +55,7 @@
 	protected KbObject parent;
 	
 	//locations of xml attributes
-	protected Map<String,IValueInfo> attributesInfo = new HashMap<String, IValueInfo>();
+	protected Map<String,IValueInfo> attributesInfo = new HashMap<String, IValueInfo>(8);
 
 	public KbObject() {}
 

Modified: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/KbProject.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/KbProject.java	2012-09-20 23:50:49 UTC (rev 43888)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/KbProject.java	2012-09-20 23:56:14 UTC (rev 43889)
@@ -36,6 +36,7 @@
 import org.jboss.tools.common.model.project.ext.event.Change;
 import org.jboss.tools.common.model.project.ext.store.XMLStoreConstants;
 import org.jboss.tools.common.model.util.EclipseResourceUtil;
+import org.jboss.tools.common.util.UniquePaths;
 import org.jboss.tools.common.validation.IProjectValidationContext;
 import org.jboss.tools.common.validation.internal.ProjectValidationContext;
 import org.jboss.tools.common.xml.XMLUtilities;
@@ -748,6 +749,7 @@
 	 * @param source
 	 */	
 	public void registerComponents(LoadedDeclarations ds, IPath source) {
+		source = UniquePaths.getInstance().intern(source);
 		boolean isThisProject = pathCheck.isThisProject(source);
 		ITagLibrary[] libraries = ds.getLibraries().toArray(new ITagLibrary[0]);
 



More information about the jbosstools-commits mailing list