From 3b560f5990c9c96a7f31860735b0b60eb798e7d3 Mon Sep 17 00:00:00 2001 From: zaaarf Date: Fri, 17 Mar 2023 18:42:27 +0100 Subject: fix: getParameters() not getTypeParameters() --- src/main/java/ftbsc/lll/processor/LilleroProcessor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/main/java/ftbsc/lll/processor/LilleroProcessor.java b/src/main/java/ftbsc/lll/processor/LilleroProcessor.java index d94d44d..a965068 100644 --- a/src/main/java/ftbsc/lll/processor/LilleroProcessor.java +++ b/src/main/java/ftbsc/lll/processor/LilleroProcessor.java @@ -329,8 +329,8 @@ public class LilleroProcessor extends AbstractProcessor { for(Modifier mod : targetMethod.getModifiers()) b.addStatement("bd.addModifier($L)", mapModifier(mod)); - for(TypeParameterElement p : targetMethod.getTypeParameters()) - b.addStatement("bd.addParameter($T.class)", p.asType()); + for(VariableElement p : targetMethod.getParameters()) + b.addStatement("bd.addParameter($T.class)",p.asType()); b.addStatement("bd.setReturnType($T.class)", targetMethod.getReturnType()); b.addStatement("return bd.build()"); -- cgit v1.2.3-56-ga3b1