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