mirror of
https://github.com/moparisthebest/JdbcMapper
synced 2024-12-22 07:18:51 -05:00
Reuse variable
This commit is contained in:
parent
243bf8c1ae
commit
e7f191f54b
@ -298,7 +298,7 @@ public class CompileTimeRowToObjectMapper {
|
|||||||
if (modifiers.contains(Modifier.STATIC)) return false;
|
if (modifiers.contains(Modifier.STATIC)) return false;
|
||||||
if (!modifiers.contains(Modifier.PUBLIC)) return false;
|
if (!modifiers.contains(Modifier.PUBLIC)) return false;
|
||||||
final TypeMirror methodReturnType = method.getReturnType();
|
final TypeMirror methodReturnType = method.getReturnType();
|
||||||
if (TypeKind.VOID != method.getReturnType().getKind() && !rsm.types.isSameType(enclosingClass, methodReturnType)) return false;
|
if (TypeKind.VOID != methodReturnType.getKind() && !rsm.types.isSameType(enclosingClass, methodReturnType)) return false;
|
||||||
|
|
||||||
// method parameter checks
|
// method parameter checks
|
||||||
final List<? extends VariableElement> params = method.getParameters();
|
final List<? extends VariableElement> params = method.getParameters();
|
||||||
|
Loading…
Reference in New Issue
Block a user