From 2768fceee4dd29f11a3c3ecb038db217cdb56b50 Mon Sep 17 00:00:00 2001 From: jochen Date: Thu, 29 Apr 1999 11:14:59 +0000 Subject: [PATCH] intern all class names git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@711 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/bytecode/ConstantPool.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jode/jode/bytecode/ConstantPool.java b/jode/jode/bytecode/ConstantPool.java index f93ff81..36e5b17 100644 --- a/jode/jode/bytecode/ConstantPool.java +++ b/jode/jode/bytecode/ConstantPool.java @@ -197,7 +197,7 @@ public class ConstantPool { String type = getUTF8(indices2[nameTypeIndex]); checkTypeSig(type, tags[i] != FIELDREF); String clName = getClassType(classIndex); - constants[i] = new Reference + constants[i] = Reference.getReference (clName, getUTF8(indices1[nameTypeIndex]), type); } return (Reference) constants[i]; @@ -228,7 +228,7 @@ public class ConstantPool { checkTypeSig(clName, false); else { checkClassName(clName); - clName = "L"+clName+';'; + clName = ("L"+clName+';').intern(); } return clName; } @@ -240,7 +240,7 @@ public class ConstantPool { throw new ClassFormatException("Tag mismatch"); String clName = getUTF8(indices1[i]); checkClassName(clName); - return clName.replace('/','.'); + return clName.replace('/','.').intern(); } public String toString(int i) {