mirror of
https://github.com/zaaarf/lillero-processor.git
synced 2024-11-14 05:49:19 +01:00
fix: call right type of builder for fields
This commit is contained in:
parent
1f0db87478
commit
79f28d077c
1 changed files with 2 additions and 1 deletions
|
@ -10,6 +10,7 @@ import ftbsc.lll.processor.annotations.Patch;
|
|||
import ftbsc.lll.processor.annotations.Target;
|
||||
import ftbsc.lll.processor.tools.ArrayContainer;
|
||||
import ftbsc.lll.processor.tools.obfuscation.ObfuscationMapper;
|
||||
import ftbsc.lll.proxies.FieldProxy;
|
||||
import ftbsc.lll.proxies.MethodProxy;
|
||||
|
||||
import javax.annotation.processing.*;
|
||||
|
@ -330,7 +331,7 @@ public class LilleroProcessor extends AbstractProcessor {
|
|||
|
||||
b.addStatement("$T bd = $T.builder($S)",
|
||||
MethodProxy.Builder.class,
|
||||
MethodProxy.class,
|
||||
isMethod ? MethodProxy.class : FieldProxy.class,
|
||||
findMemberName(targetParentFQN, target.getSimpleName().toString(), methodDescriptor, mapper)
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue