ASM-generated class names get interned for better memory allocation

Issue: SPR-14862
This commit is contained in:
Juergen Hoeller 2016-10-31 11:56:34 +01:00
parent d759c96a98
commit d859826be6
1 changed files with 2 additions and 2 deletions

View File

@ -562,7 +562,7 @@ public class Type {
}
return sb.toString();
case OBJECT:
return new String(buf, off, len).replace('/', '.');
return new String(buf, off, len).replace('/', '.').intern();
default:
return null;
}
@ -577,7 +577,7 @@ public class Type {
* @return the internal name of the class corresponding to this object type.
*/
public String getInternalName() {
return new String(buf, off, len);
return new String(buf, off, len).intern();
}
/**