mirror of
https://github.com/zaaarf/lillero-processor.git
synced 2024-11-21 22:04:49 +01:00
fix: rename @Find's className as well
This commit is contained in:
parent
527cef56e6
commit
ee12ab20c1
2 changed files with 2 additions and 3 deletions
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue