summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar asie2018-10-31 22:08:47 +0100
committerGravatar asie2018-10-31 22:08:47 +0100
commitff6cb1a78ee3480929c9b94e19d83e325962337f (patch)
tree0b23f45cd7f797321b1238171cb4cc359551008e /src
parentexpose AccessFlags correctly (diff)
downloadenigma-ff6cb1a78ee3480929c9b94e19d83e325962337f.tar.gz
enigma-ff6cb1a78ee3480929c9b94e19d83e325962337f.tar.xz
enigma-ff6cb1a78ee3480929c9b94e19d83e325962337f.zip
hackfix argument order in inner class constructors. this needs a proper fix
Diffstat (limited to 'src')
-rw-r--r--src/main/java/cuchaz/enigma/analysis/SourceIndexMethodVisitor.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/cuchaz/enigma/analysis/SourceIndexMethodVisitor.java b/src/main/java/cuchaz/enigma/analysis/SourceIndexMethodVisitor.java
index 2a638db5..d88eae3a 100644
--- a/src/main/java/cuchaz/enigma/analysis/SourceIndexMethodVisitor.java
+++ b/src/main/java/cuchaz/enigma/analysis/SourceIndexMethodVisitor.java
@@ -33,7 +33,7 @@ public class SourceIndexMethodVisitor extends SourceIndexVisitor {
33 33
34 private Multimap<String, Identifier> unmatchedIdentifier = HashMultimap.create(); 34 private Multimap<String, Identifier> unmatchedIdentifier = HashMultimap.create();
35 private Map<String, Entry> identifierEntryCache = new HashMap<>(); 35 private Map<String, Entry> identifierEntryCache = new HashMap<>();
36 private int argumentPosition = 0; 36 private int argumentPosition;
37 37
38 public SourceIndexMethodVisitor(ReferencedEntryPool entryPool, ClassDefEntry ownerEntry, MethodDefEntry methodEntry) { 38 public SourceIndexMethodVisitor(ReferencedEntryPool entryPool, ClassDefEntry ownerEntry, MethodDefEntry methodEntry) {
39 super(entryPool); 39 super(entryPool);
@@ -41,6 +41,10 @@ public class SourceIndexMethodVisitor extends SourceIndexVisitor {
41 this.entryFactory = new ProcyonEntryFactory(entryPool); 41 this.entryFactory = new ProcyonEntryFactory(entryPool);
42 this.ownerEntry = ownerEntry; 42 this.ownerEntry = ownerEntry;
43 this.methodEntry = methodEntry; 43 this.methodEntry = methodEntry;
44 this.argumentPosition = 0;
45 if (ownerEntry.isInnerClass() && methodEntry.isConstructor() && !ownerEntry.getAccess().isStatic()) {
46 this.argumentPosition++;
47 }
44 } 48 }
45 49
46 @Override 50 @Override