1 /*xml 2 <module name="Checker"> 3 <module name="TreeWalker"> 4 <module name="LambdaParameterName"/> 5 </module> 6 </module> 7 */ 8 9 package com.puppycrawl.tools.checkstyle.checks.naming.lambdaparametername; 10 11 import java.util.function.Function; 12 13 // xdoc section -- start 14 class Example1 { 15 Function<String, String> function1 = s -> s.toLowerCase(); 16 Function<String, String> function2 = 17 S -> S.toLowerCase(); // violation 'Name 'S' must match pattern' 18 } 19 // xdoc section -- end