mirror of
https://github.com/zaaarf/lillero-processor.git
synced 2024-11-22 14:54:51 +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,7 +329,7 @@ public class LilleroProcessor extends AbstractProcessor {
|
||||||
for(Modifier mod : targetMethod.getModifiers())
|
for(Modifier mod : targetMethod.getModifiers())
|
||||||
b.addStatement("bd.addModifier($L)", mapModifier(mod));
|
b.addStatement("bd.addModifier($L)", mapModifier(mod));
|
||||||
|
|
||||||
for(TypeParameterElement p : targetMethod.getTypeParameters())
|
for(VariableElement p : targetMethod.getParameters())
|
||||||
b.addStatement("bd.addParameter($T.class)",p.asType());
|
b.addStatement("bd.addParameter($T.class)",p.asType());
|
||||||
|
|
||||||
b.addStatement("bd.setReturnType($T.class)", targetMethod.getReturnType());
|
b.addStatement("bd.setReturnType($T.class)", targetMethod.getReturnType());
|
||||||
|
|
Loading…
Reference in a new issue