View Javadoc
1   /*
2   JavadocVariable
3   accessModifiers = (default)public,protected,package,private
4   ignoreNamePattern = (default)null
5   tokens = (default)ENUM_CONSTANT_DEF
6   
7   */
8   
9   package com.puppycrawl.tools.checkstyle.checks.javadoc.javadocvariable;
10  
11  import java.util.function.Function;
12  
13  public class InputJavadocVariableNoJavadocNeededInLambda {
14      // violation below, 'Missing a Javadoc comment'
15      private static final Function<String, String> FUNCTION1 = (String it) -> {
16          String stuff = it;
17          return stuff + it;
18      };
19  
20      /** */
21      private static final Function<String, String> FUNCTION2 = (String it) -> {
22          String stuff = it;
23          return stuff + it;
24      };
25  
26      /** Runnable. */
27      private Runnable r = () -> {
28          String str = "Hello world";
29      };
30  }