fix: getParameters() not getTypeParameters()

This commit is contained in:
zaaarf 2023-03-17 18:42:27 +01:00
parent 6d1d648af4
commit 3b560f5990
No known key found for this signature in database
GPG key ID: 82240E075E31FA4C

View file

@ -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()");