diff options
| author | 2014-08-23 23:43:31 -0400 | |
|---|---|---|
| committer | 2014-08-23 23:43:31 -0400 | |
| commit | 8fa1741b621644ef84a9395a4c395d4ff3a89207 (patch) | |
| tree | 9cc054e2636dd13a32950ad68dba212275d33026 /src/cuchaz/enigma/bytecode/InnerClassWriter.java | |
| parent | added export command with progress bar (diff) | |
| download | enigma-fork-8fa1741b621644ef84a9395a4c395d4ff3a89207.tar.gz enigma-fork-8fa1741b621644ef84a9395a4c395d4ff3a89207.tar.xz enigma-fork-8fa1741b621644ef84a9395a4c395d4ff3a89207.zip | |
moved all classes from the default package into a package called "default" so they can be properly imported by other classes
Diffstat (limited to '')
| -rw-r--r-- | src/cuchaz/enigma/bytecode/InnerClassWriter.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cuchaz/enigma/bytecode/InnerClassWriter.java b/src/cuchaz/enigma/bytecode/InnerClassWriter.java index c412b1a..2fb5fe0 100644 --- a/src/cuchaz/enigma/bytecode/InnerClassWriter.java +++ b/src/cuchaz/enigma/bytecode/InnerClassWriter.java | |||
| @@ -42,7 +42,7 @@ public class InnerClassWriter | |||
| 42 | else | 42 | else |
| 43 | { | 43 | { |
| 44 | // this is an inner class, rename it to outer$inner | 44 | // this is an inner class, rename it to outer$inner |
| 45 | ClassEntry obfClassEntry = new ClassEntry( obfOuterClassName + "$" + obfClassName ); | 45 | ClassEntry obfClassEntry = new ClassEntry( obfOuterClassName + "$" + new ClassEntry( obfClassName ).getSimpleName() ); |
| 46 | c.setName( obfClassEntry.getName() ); | 46 | c.setName( obfClassEntry.getName() ); |
| 47 | } | 47 | } |
| 48 | 48 | ||
| @@ -60,8 +60,8 @@ public class InnerClassWriter | |||
| 60 | c.getClassFile().addAttribute( attr ); | 60 | c.getClassFile().addAttribute( attr ); |
| 61 | for( String obfInnerClassName : obfInnerClassNames ) | 61 | for( String obfInnerClassName : obfInnerClassNames ) |
| 62 | { | 62 | { |
| 63 | // deobfuscate the class names | 63 | // get the new inner class name |
| 64 | ClassEntry obfClassEntry = new ClassEntry( obfOuterClassName + "$" + obfInnerClassName ); | 64 | ClassEntry obfClassEntry = new ClassEntry( obfOuterClassName + "$" + new ClassEntry( obfInnerClassName ).getSimpleName() ); |
| 65 | 65 | ||
| 66 | // here's what the JVM spec says about the InnerClasses attribute | 66 | // here's what the JVM spec says about the InnerClasses attribute |
| 67 | // append( inner, outer of inner if inner is member of outer 0 ow, name after $ if inner not anonymous 0 ow, flags ); | 67 | // append( inner, outer of inner if inner is member of outer 0 ow, name after $ if inner not anonymous 0 ow, flags ); |