fix: include inner names in FQN

This commit is contained in:
zaaarf 2023-03-27 20:45:41 +02:00
parent 7ac0f5f700
commit 0213e930b6
No known key found for this signature in database
GPG key ID: 82240E075E31FA4C

View file

@ -54,7 +54,9 @@ public class ClassContainer {
throw new TargetNotFoundException("class", fqn); throw new TargetNotFoundException("class", fqn);
if(innerNames != null) { if(innerNames != null) {
StringBuilder newFQN = new StringBuilder(fqn);
for(String inner : innerNames) { for(String inner : innerNames) {
newFQN.append("$").append(inner);
try { try {
int anonClassCounter = Integer.parseInt(inner); int anonClassCounter = Integer.parseInt(inner);
//anonymous classes cannot be validated! //anonymous classes cannot be validated!
@ -80,8 +82,8 @@ public class ClassContainer {
if(elem == null) if(elem == null)
throw new TargetNotFoundException("class", inner); throw new TargetNotFoundException("class", inner);
} }
} this.fqn = newFQN.toString();
this.fqn = fqn; } else this.fqn = fqn;
this.fqnObf = findClassName(fqn, mapper); this.fqnObf = findClassName(fqn, mapper);
this.elem = elem; this.elem = elem;
} }