diff --git a/moxy-compiler/src/main/java/com/arellomobile/mvp/compiler/viewstate/ViewStateClassGenerator.java b/moxy-compiler/src/main/java/com/arellomobile/mvp/compiler/viewstate/ViewStateClassGenerator.java index 266f7b70..f4d71bc9 100644 --- a/moxy-compiler/src/main/java/com/arellomobile/mvp/compiler/viewstate/ViewStateClassGenerator.java +++ b/moxy-compiler/src/main/java/com/arellomobile/mvp/compiler/viewstate/ViewStateClassGenerator.java @@ -93,8 +93,8 @@ private MethodSpec generateMethod(ViewMethod method, TypeName viewTypeName, Type .addStatement("return") .endControlFlow() .addCode("\n") - .beginControlFlow("for ($T view : mViews)", viewTypeName) - .addStatement("view.$L($L)", method.getName(), method.getArgumentsString()) + .beginControlFlow("for ($T _view : mViews)", viewTypeName) + .addStatement("_view.$L($L)", method.getName(), method.getArgumentsString()) .endControlFlow() .addCode("\n") .addStatement("mViewCommands.afterApply($L)", commandFieldName)