View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.whitespace.whitespacearound;
2   
3   import java.util.function.*;
4   
5   
6   public class InputWhitespaceAroundAllowEmptyLambdaExpressions {
7       Runnable noop = () -> {};
8       Runnable noop2 = () -> {
9           int x = 10;
10      };
11      BinaryOperator<Integer> sum = (x, y) -> x + y;
12      Runnable noop3 = () -> {;};
13      Runnable noop4 = () -> {new String();};
14  }