doTransformations added

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@648 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 7d06267c62
commit 4b067aedcb
  1. 14
      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) { public void readTable(Hashtable table) {
if (parent != null) if (parent != null)
setAlias((String) table.get(parent.getFullName() + getName())); setAlias((String) table.get(parent.getFullName() + getName()));
@ -453,8 +464,7 @@ public class PackageIdentifier extends Identifier {
continue; continue;
} }
if (ident instanceof PackageIdentifier) if (ident instanceof PackageIdentifier)
((PackageIdentifier) ident) ((PackageIdentifier) ident).storeClasses(zip);
.storeClasses(zip);
else { else {
try { try {
String filename = ident.getFullAlias().replace('.','/') String filename = ident.getFullAlias().replace('.','/')

Loading…
Cancel
Save