[jbosstools-commits] JBoss Tools SVN: r43885 - trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/model/project/ext/store.

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


Author: scabanovich
Date: 2012-09-20 19:19:55 -0400 (Thu, 20 Sep 2012)
New Revision: 43885

Modified:
   trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/model/project/ext/store/XMLValueInfo.java
Log:
JBIDE-12479
https://issues.jboss.org/browse/JBIDE-12479
Reduce number of cached strings.


Modified: trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/model/project/ext/store/XMLValueInfo.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/model/project/ext/store/XMLValueInfo.java	2012-09-20 20:28:31 UTC (rev 43884)
+++ trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/model/project/ext/store/XMLValueInfo.java	2012-09-20 23:19:55 UTC (rev 43885)
@@ -10,11 +10,9 @@
   ******************************************************************************/
 package org.jboss.tools.jst.web.model.project.ext.store;
 
-import java.io.File;
 import java.util.Properties;
 
 import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IResource;
 import org.jboss.tools.common.model.XModelObject;
 import org.jboss.tools.common.model.project.ext.IValueInfo;
 import org.jboss.tools.common.model.project.ext.store.XMLStoreConstants;
@@ -36,7 +34,7 @@
 	
 	public XMLValueInfo(XModelObject object, String attribute) {
 		this.object = object;
-		this.attribute = attribute;
+		this.attribute = attribute.intern();
 	}
 
 	public int getLength() {



More information about the jbosstools-commits mailing list