diff options
author | zaaarf <zaaarf@proton.me> | 2023-03-27 20:45:41 +0200 |
---|---|---|
committer | zaaarf <zaaarf@proton.me> | 2023-03-27 20:45:41 +0200 |
commit | 0213e930b656fd4c438c2e4142be6f18bed87742 (patch) | |
tree | 8402aec9b23773b8ef2cdd1eadd92e98d26f00de | |
parent | 7ac0f5f7000cc51a20a6d5734f63fa7d1415914f (diff) |
fix: include inner names in FQN
-rw-r--r-- | src/main/java/ftbsc/lll/processor/tools/containers/ClassContainer.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/ftbsc/lll/processor/tools/containers/ClassContainer.java b/src/main/java/ftbsc/lll/processor/tools/containers/ClassContainer.java index 3ea6a62..7251aa6 100644 --- a/src/main/java/ftbsc/lll/processor/tools/containers/ClassContainer.java +++ b/src/main/java/ftbsc/lll/processor/tools/containers/ClassContainer.java @@ -54,7 +54,9 @@ public class ClassContainer { throw new TargetNotFoundException("class", fqn); if(innerNames != null) { + StringBuilder newFQN = new StringBuilder(fqn); for(String inner : innerNames) { + newFQN.append("$").append(inner); try { int anonClassCounter = Integer.parseInt(inner); //anonymous classes cannot be validated! @@ -80,8 +82,8 @@ public class ClassContainer { if(elem == null) throw new TargetNotFoundException("class", inner); } - } - this.fqn = fqn; + this.fqn = newFQN.toString(); + } else this.fqn = fqn; this.fqnObf = findClassName(fqn, mapper); this.elem = elem; } |