View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.coding.innerassignment;
2   
3   import java.util.function.Supplier;
4   
5   
6   public class InputInnerAssignmentLambdaExpressions {
7       interface MyLambda {
8           void e(Object e);
9       }
10      private static class MyButton {
11          public void setOnAction(MyLambda my) {
12          }
13      }
14      private void setAction() {
15          MyButton button = new MyButton();
16          button.setOnAction(e -> { boolean pressed = true; });  //No violation here
17      }
18  }