View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.whitespace.parenpad;
2   
3   public class InputParenPadWithDisabledLambda {
4       {
5           java.util.function.Consumer a = (o) -> { o.toString(); }; // ok
6   
7           java.util.function.Consumer b = o -> { o.toString(); }; // ok
8   
9           java.util.function.Consumer c = ( o ) -> { o.toString(); }; // ok
10  
11          java.util.function.Consumer d = (o ) -> { o.toString(); }; // ok
12  
13          java.util.function.Consumer e = ( o) -> { o.toString(); }; // ok
14  
15          java.util.stream.Stream.of().forEach(( o ) -> o.toString()); // ok
16  
17          java.util.stream.Stream.of().forEach(( Object o ) -> o.toString()); // ok
18  
19          java.util.stream.Stream.of().forEach(o -> o.toString( )); // 2 violations
20      }
21  
22      void someMethod( String param ) { // 2 violations
23      }
24  }