mirror of
https://github.com/zaaarf/lillero-processor.git
synced 2024-11-22 03:14:49 +01:00
fix: getParameters() not getTypeParameters()
This commit is contained in:
parent
6d1d648af4
commit
3b560f5990
1 changed files with 2 additions and 2 deletions
|
@ -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()");
|
||||
|
|
Loading…
Reference in a new issue