From 6e4d05fee5ba4667fbbc85233a602a4dd5388721 Mon Sep 17 00:00:00 2001 From: jochen Date: Thu, 29 Apr 1999 11:18:48 +0000 Subject: [PATCH] cache name and type git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@715 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/obfuscator/FieldIdentifier.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/jode/jode/obfuscator/FieldIdentifier.java b/jode/jode/obfuscator/FieldIdentifier.java index 28fd3c6..a978fcd 100644 --- a/jode/jode/obfuscator/FieldIdentifier.java +++ b/jode/jode/obfuscator/FieldIdentifier.java @@ -26,6 +26,8 @@ import java.util.*; public class FieldIdentifier extends Identifier{ FieldInfo info; ClassIdentifier clazz; + String name; + String type; /** * This field tells if the value is not constant. It is initially * set to false, and if a write to that field is found, it is set @@ -42,6 +44,8 @@ public class FieldIdentifier extends Identifier{ public FieldIdentifier(ClassIdentifier clazz, FieldInfo info) { super(info.getName()); + this.name = info.getName(); + this.type = info.getType(); this.info = info; this.clazz = clazz; this.constant = info.getConstant(); @@ -82,11 +86,11 @@ public class FieldIdentifier extends Identifier{ } public String getName() { - return info.getName(); + return name; } public String getType() { - return info.getType(); + return type; } public boolean isNotConstant() { @@ -146,6 +150,6 @@ public class FieldIdentifier extends Identifier{ public void doTransformations() { info.setName(getAlias()); - info.setType(clazz.bundle.getTypeAlias(info.getType())); + info.setType(clazz.bundle.getTypeAlias(type)); } }