Reuse variable

This commit is contained in:
Travis Burtrum 2019-01-10 23:09:17 -05:00
parent 243bf8c1ae
commit e7f191f54b

View File

@ -298,7 +298,7 @@ public class CompileTimeRowToObjectMapper {
if (modifiers.contains(Modifier.STATIC)) return false;
if (!modifiers.contains(Modifier.PUBLIC)) return false;
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
final List<? extends VariableElement> params = method.getParameters();