summaryrefslogtreecommitdiff
path: root/src/main/java/ftbsc/lll
diff options
context:
space:
mode:
author zaaarf <zaaarf@proton.me>2023-04-12 19:17:11 +0200
committer zaaarf <zaaarf@proton.me>2023-04-12 19:17:11 +0200
commitee12ab20c13577424d36e913863364324d0ac6b9 (patch)
tree94a966ef6428bff2acb215a992358061050df285 /src/main/java/ftbsc/lll
parent527cef56e6881c88f630e93b90c8d412ed4c4723 (diff)
fix: rename @Find's className as well
Diffstat (limited to 'src/main/java/ftbsc/lll')
-rw-r--r--src/main/java/ftbsc/lll/processor/annotations/Find.java2
-rw-r--r--src/main/java/ftbsc/lll/processor/tools/containers/ClassContainer.java3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/ftbsc/lll/processor/annotations/Find.java b/src/main/java/ftbsc/lll/processor/annotations/Find.java
index 0d43d33..82dea62 100644
--- a/src/main/java/ftbsc/lll/processor/annotations/Find.java
+++ b/src/main/java/ftbsc/lll/processor/annotations/Find.java
@@ -34,7 +34,7 @@ public @interface Find {
* defaults to empty string (not an inner class)
* @since 0.5.0
*/
- String className() default "";
+ String innerName() default "";
/**
* For a {@link FieldProxy}, this is the name of the field to find. If omitted,
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 dd5635f..95a71bb 100644
--- a/src/main/java/ftbsc/lll/processor/tools/containers/ClassContainer.java
+++ b/src/main/java/ftbsc/lll/processor/tools/containers/ClassContainer.java
@@ -10,7 +10,6 @@ import javax.lang.model.element.Element;
import javax.lang.model.element.TypeElement;
import javax.tools.Diagnostic;
import java.lang.annotation.Annotation;
-import java.util.Arrays;
import java.util.function.Function;
import static ftbsc.lll.processor.tools.ASTUtils.*;
@@ -125,7 +124,7 @@ public class ClassContainer {
*/
public static ClassContainer findOrFallback(ClassContainer fallback, Find f, ProcessingEnvironment env, ObfuscationMapper mapper) {
if(f == null) return fallback;
- ClassContainer cl = ClassContainer.from(f, Find::value, f.className(), env, mapper);
+ ClassContainer cl = ClassContainer.from(f, Find::value, f.innerName(), env, mapper);
return cl.fqn.equals("java.lang.Object")
? fallback
: cl;