From 0250b87fe120b200919026c2be075b7e6b22af26 Mon Sep 17 00:00:00 2001 From: hoenicke Date: Fri, 1 Dec 2000 17:11:40 +0000 Subject: [PATCH] Removed some old local variables, that were never accessed. Fixed an ArrayIndexOutOfBoundsException: addIfaces assumed that ifaceNames and info.getInterfaces() were identical, but unfortunately info.getInterfaces() could have been changed by an earlier transformInterfaces(). git-svn-id: https://svn.code.sf.net/p/jode/code/branches/branch_1_1@1276 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/obfuscator/ClassIdentifier.java.in | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/jode/jode/obfuscator/ClassIdentifier.java.in b/jode/jode/obfuscator/ClassIdentifier.java.in index 9894f43..563862d 100644 --- a/jode/jode/obfuscator/ClassIdentifier.java.in +++ b/jode/jode/obfuscator/ClassIdentifier.java.in @@ -401,15 +401,11 @@ public class ClassIdentifier extends Identifier { ifaceNames = new String[ifaces.length]; for (int i=0; i < ifaces.length; i++) { ifaceNames[i] = ifaces[i].getName(); - ClassIdentifier ifaceident = Main.getClassBundle() - .getClassIdentifier(ifaceNames[i]); initSuperClasses(ifaces[i]); } if (info.getSuperclass() != null) { superName = info.getSuperclass().getName(); - ClassIdentifier superident = Main.getClassBundle() - .getClassIdentifier(superName); initSuperClasses(info.getSuperclass()); } @@ -458,11 +454,10 @@ public class ClassIdentifier extends Identifier { * @param ancestor The ancestor whose interfaces should be added. */ public void addIfaces(Collection result, ClassIdentifier ancestor) { - String[] ifaces = ancestor.ifaceNames; ClassInfo[] ifaceInfos = ancestor.info.getInterfaces(); - for (int i=0; i < ifaces.length; i++) { + for (int i=0; i < ifaceInfos.length; i++) { ClassIdentifier ifaceident - = Main.getClassBundle().getClassIdentifier(ifaces[i]); + = Main.getClassBundle().getClassIdentifier(ifaceInfos[i].getName()); if (ifaceident != null && !ifaceident.isReachable()) addIfaces(result, ifaceident); else