diff options
author | zaaarf <zaaarf@proton.me> | 2023-03-17 18:42:27 +0100 |
---|---|---|
committer | zaaarf <zaaarf@proton.me> | 2023-03-17 18:42:27 +0100 |
commit | 3b560f5990c9c96a7f31860735b0b60eb798e7d3 (patch) | |
tree | f150d2d7647093761ad357adcd064f23605b96c8 /src | |
parent | 6d1d648af437deaab29976c32a77c6cb7a2e5e30 (diff) |
fix: getParameters() not getTypeParameters()
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/ftbsc/lll/processor/LilleroProcessor.java | 4 |
1 files changed, 2 insertions, 2 deletions
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()"); |