From 4b067aedcbfef6144207a1a3f14de6d1d64fa050 Mon Sep 17 00:00:00 2001 From: jochen Date: Tue, 27 Apr 1999 18:17:30 +0000 Subject: [PATCH] doTransformations added git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@648 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/obfuscator/PackageIdentifier.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/jode/jode/obfuscator/PackageIdentifier.java b/jode/jode/obfuscator/PackageIdentifier.java index bff2a5c..096335a 100644 --- a/jode/jode/obfuscator/PackageIdentifier.java +++ b/jode/jode/obfuscator/PackageIdentifier.java @@ -407,6 +407,17 @@ public class PackageIdentifier extends Identifier { } } + public void doTransformations() { + Enumeration enum = loadedClasses.elements(); + while (enum.hasMoreElements()) { + Identifier ident = (Identifier) enum.nextElement(); + if (ident instanceof ClassIdentifier) { + ((ClassIdentifier) ident).doTransformations(); + } else + ((PackageIdentifier) ident).doTransformations(); + } + } + public void readTable(Hashtable table) { if (parent != null) setAlias((String) table.get(parent.getFullName() + getName())); @@ -453,8 +464,7 @@ public class PackageIdentifier extends Identifier { continue; } if (ident instanceof PackageIdentifier) - ((PackageIdentifier) ident) - .storeClasses(zip); + ((PackageIdentifier) ident).storeClasses(zip); else { try { String filename = ident.getFullAlias().replace('.','/')