[jbosstools-commits] JBoss Tools SVN: r43884 - trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition.
jbosstools-commits at lists.jboss.org
jbosstools-commits at lists.jboss.org
Thu Sep 20 16:28:31 EDT 2012
Author: scabanovich
Date: 2012-09-20 16:28:31 -0400 (Thu, 20 Sep 2012)
New Revision: 43884
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/DefinitionContext.java
Log:
JBIDE-12479
https://issues.jboss.org/browse/JBIDE-12479
Reduce number of cached strings.
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/DefinitionContext.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/DefinitionContext.java 2012-09-20 20:26:57 UTC (rev 43883)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/DefinitionContext.java 2012-09-20 20:28:31 UTC (rev 43884)
@@ -171,6 +171,7 @@
ts = new HashSet<String>();
resources.put(file, ts);
}
+ packageName = packageName.intern();
ts.add(packageName);
packages.add(packageName);
addToParents(file);
@@ -196,6 +197,7 @@
ts = new HashSet<String>();
resources.put(file, ts);
}
+ typeName = typeName.intern();
ts.add(typeName);
types.add(typeName);
addToParents(file);
More information about the jbosstools-commits
mailing list