diff options
| author | 2014-09-28 15:20:54 -0400 | |
|---|---|---|
| committer | 2014-09-28 15:20:54 -0400 | |
| commit | cf3ffcee30083a71e68e3edb9ecbb936cc255992 (patch) | |
| tree | f9a6415d7eef1e76640b07238d2d08daecedde17 /src/cuchaz/enigma/analysis/SourceIndexClassVisitor.java | |
| parent | implemented mark-as-deobfuscated and reset-to-obfuscated (diff) | |
| download | enigma-fork-cf3ffcee30083a71e68e3edb9ecbb936cc255992.tar.gz enigma-fork-cf3ffcee30083a71e68e3edb9ecbb936cc255992.tar.xz enigma-fork-cf3ffcee30083a71e68e3edb9ecbb936cc255992.zip | |
added proper support for renaming constructors
Diffstat (limited to 'src/cuchaz/enigma/analysis/SourceIndexClassVisitor.java')
| -rw-r--r-- | src/cuchaz/enigma/analysis/SourceIndexClassVisitor.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/cuchaz/enigma/analysis/SourceIndexClassVisitor.java b/src/cuchaz/enigma/analysis/SourceIndexClassVisitor.java index 5d8a383..fc8cd66 100644 --- a/src/cuchaz/enigma/analysis/SourceIndexClassVisitor.java +++ b/src/cuchaz/enigma/analysis/SourceIndexClassVisitor.java | |||
| @@ -28,7 +28,6 @@ import cuchaz.enigma.mapping.BehaviorEntry; | |||
| 28 | import cuchaz.enigma.mapping.BehaviorEntryFactory; | 28 | import cuchaz.enigma.mapping.BehaviorEntryFactory; |
| 29 | import cuchaz.enigma.mapping.ClassEntry; | 29 | import cuchaz.enigma.mapping.ClassEntry; |
| 30 | import cuchaz.enigma.mapping.ConstructorEntry; | 30 | import cuchaz.enigma.mapping.ConstructorEntry; |
| 31 | import cuchaz.enigma.mapping.Entry; | ||
| 32 | import cuchaz.enigma.mapping.FieldEntry; | 31 | import cuchaz.enigma.mapping.FieldEntry; |
| 33 | 32 | ||
| 34 | public class SourceIndexClassVisitor extends SourceIndexVisitor | 33 | public class SourceIndexClassVisitor extends SourceIndexVisitor |
| @@ -63,10 +62,7 @@ public class SourceIndexClassVisitor extends SourceIndexVisitor | |||
| 63 | if( node.getIdentifierToken().getStartLocation() != TextLocation.EMPTY ) | 62 | if( node.getIdentifierToken().getStartLocation() != TextLocation.EMPTY ) |
| 64 | { | 63 | { |
| 65 | ClassEntry classEntry = new ClassEntry( ref.getInternalName() ); | 64 | ClassEntry classEntry = new ClassEntry( ref.getInternalName() ); |
| 66 | index.addReference( | 65 | index.addReference( node.getIdentifierToken(), classEntry, m_classEntry ); |
| 67 | node.getIdentifierToken(), | ||
| 68 | new EntryReference<Entry,Entry>( classEntry, m_classEntry ) | ||
| 69 | ); | ||
| 70 | } | 66 | } |
| 71 | 67 | ||
| 72 | return recurse( node, index ); | 68 | return recurse( node, index ); |