View Javadoc
1   package org.checkstyle.suppressionxpathfilter.executablestatementcount;
2   
3   import java.util.function.Consumer;
4   import java.util.function.Function;
5   
6   public class InputXpathExecutableStatementCountLambdas {
7       Consumer c = (s) -> { // warn
8           String str = s.toString();
9           str = str + "!";
10      };
11  
12      Consumer t = a -> a.toString().trim(); // ok
13      Function x1 = a -> a; // ok
14      Function y = a -> null; // ok
15  }