diff options
| author | 2016-09-07 16:58:12 +0200 | |
|---|---|---|
| committer | 2016-09-07 16:58:12 +0200 | |
| commit | 591f44c85c392ecf281039a9f3c52673c11d9584 (patch) | |
| tree | 3210b2c45643a286dda715915fb7776deac84ee3 /src/main/java/cuchaz/enigma/analysis | |
| parent | Generify ProcyonEntryFactory (Fix #18) (diff) | |
| download | enigma-fork-591f44c85c392ecf281039a9f3c52673c11d9584.tar.gz enigma-fork-591f44c85c392ecf281039a9f3c52673c11d9584.tar.xz enigma-fork-591f44c85c392ecf281039a9f3c52673c11d9584.zip | |
Follow Javassist signature instead of ignoring generic classes (Fix #19)
Diffstat (limited to 'src/main/java/cuchaz/enigma/analysis')
| -rw-r--r-- | src/main/java/cuchaz/enigma/analysis/SourceIndexClassVisitor.java | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/main/java/cuchaz/enigma/analysis/SourceIndexClassVisitor.java b/src/main/java/cuchaz/enigma/analysis/SourceIndexClassVisitor.java index 06ce042..2a21222 100644 --- a/src/main/java/cuchaz/enigma/analysis/SourceIndexClassVisitor.java +++ b/src/main/java/cuchaz/enigma/analysis/SourceIndexClassVisitor.java | |||
| @@ -16,7 +16,6 @@ import com.strobel.assembler.metadata.TypeDefinition; | |||
| 16 | import com.strobel.assembler.metadata.TypeReference; | 16 | import com.strobel.assembler.metadata.TypeReference; |
| 17 | import com.strobel.decompiler.languages.TextLocation; | 17 | import com.strobel.decompiler.languages.TextLocation; |
| 18 | import com.strobel.decompiler.languages.java.ast.*; | 18 | import com.strobel.decompiler.languages.java.ast.*; |
| 19 | |||
| 20 | import cuchaz.enigma.mapping.*; | 19 | import cuchaz.enigma.mapping.*; |
| 21 | 20 | ||
| 22 | public class SourceIndexClassVisitor extends SourceIndexVisitor { | 21 | public class SourceIndexClassVisitor extends SourceIndexVisitor { |
| @@ -57,7 +56,6 @@ public class SourceIndexClassVisitor extends SourceIndexVisitor { | |||
| 57 | MethodDefinition def = node.getUserData(Keys.METHOD_DEFINITION); | 56 | MethodDefinition def = node.getUserData(Keys.METHOD_DEFINITION); |
| 58 | BehaviorEntry behaviorEntry = ProcyonEntryFactory.getBehaviorEntry(def); | 57 | BehaviorEntry behaviorEntry = ProcyonEntryFactory.getBehaviorEntry(def); |
| 59 | AstNode tokenNode = node.getNameToken(); | 58 | AstNode tokenNode = node.getNameToken(); |
| 60 | |||
| 61 | if (behaviorEntry instanceof ConstructorEntry) { | 59 | if (behaviorEntry instanceof ConstructorEntry) { |
| 62 | ConstructorEntry constructorEntry = (ConstructorEntry) behaviorEntry; | 60 | ConstructorEntry constructorEntry = (ConstructorEntry) behaviorEntry; |
| 63 | if (constructorEntry.isStatic()) { | 61 | if (constructorEntry.isStatic()) { |