mirror of
https://github.com/zaaarf/lillero-processor.git
synced 2024-12-23 02:24:52 +01:00
fix: epic keyboard fail
This commit is contained in:
parent
6e23559973
commit
bef6b17e15
1 changed files with 3 additions and 3 deletions
|
@ -332,12 +332,12 @@ public class LilleroProcessor extends AbstractProcessor {
|
|||
for(VariableElement p : targetMethod.getParameters()) {
|
||||
if(p.asType().getKind().isPrimitive())
|
||||
b.addStatement("bd.addParameter($T.class)", p.asType());
|
||||
else b.addStatement("bd.addParameter($S, %L)", getInnermostComponentType(p.asType()), getArrayLevel(p.asType()));
|
||||
else b.addStatement("bd.addParameter($S, $L)", getInnermostComponentType(p.asType()), getArrayLevel(p.asType()));
|
||||
}
|
||||
|
||||
if(targetMethod.getReturnType().getKind().isPrimitive())
|
||||
b.addStatement("bd.setReturnType($T.class)", targetMethod.getReturnType());
|
||||
else b.addStatement("bd.setReturnType($S, %L)", getInnermostComponentType(targetMethod.getReturnType()), getArrayLevel(targetMethod.getReturnType()));
|
||||
else b.addStatement("bd.setReturnType($S, $L)", getInnermostComponentType(targetMethod.getReturnType()), getArrayLevel(targetMethod.getReturnType()));
|
||||
|
||||
b.addStatement("return bd.build()");
|
||||
|
||||
|
@ -366,7 +366,7 @@ public class LilleroProcessor extends AbstractProcessor {
|
|||
|
||||
if(targetField.asType().getKind().isPrimitive())
|
||||
b.addStatement("bd.setType($T.class)", targetField.asType());
|
||||
else b.addStatement("bd.setType($S, %L)", getInnermostComponentType(targetField.asType()), getArrayLevel(targetField.asType()));
|
||||
else b.addStatement("bd.setType($S, $L)", getInnermostComponentType(targetField.asType()), getArrayLevel(targetField.asType()));
|
||||
|
||||
b.addStatement("return bd.build()");
|
||||
|
||||
|
|
Loading…
Reference in a new issue