From 3affc40b514336a497d157a3e03c98931dfd3edf Mon Sep 17 00:00:00 2001 From: zaaarf Date: Sat, 18 Mar 2023 20:16:29 +0100 Subject: fix: builder too --- src/main/java/ftbsc/lll/processor/LilleroProcessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/ftbsc') diff --git a/src/main/java/ftbsc/lll/processor/LilleroProcessor.java b/src/main/java/ftbsc/lll/processor/LilleroProcessor.java index 2457e83..b68eddd 100644 --- a/src/main/java/ftbsc/lll/processor/LilleroProcessor.java +++ b/src/main/java/ftbsc/lll/processor/LilleroProcessor.java @@ -330,7 +330,7 @@ public class LilleroProcessor extends AbstractProcessor { String methodDescriptor = isMethod ? descriptorFromExecutableElement((ExecutableElement) target) : null; b.addStatement("$T bd = $T.builder($S)", - MethodProxy.Builder.class, + isMethod ? MethodProxy.Builder.class : FieldProxy.Builder.class, isMethod ? MethodProxy.class : FieldProxy.class, findMemberName(targetParentFQN, target.getSimpleName().toString(), methodDescriptor, mapper) ); -- cgit v1.2.3-56-ga3b1