View Javadoc
1   /*
2   com.puppycrawl.tools.checkstyle.checks.naming.MemberNameCheck
3   format = (default)^[a-z][a-zA-Z0-9]*$
4   applyToPublic = (default)true
5   applyToProtected = (default)true
6   applyToPackage = (default)true
7   applyToPrivate = (default)true
8   
9   
10  */
11  
12  package com.puppycrawl.tools.checkstyle.grammar.java8;
13  
14  import java.awt.geom.Rectangle2D;
15  import java.lang.annotation.ElementType;
16  import java.lang.annotation.Target;
17  
18  
19  public class InputTypeUseAnnotationsOnQualifiedTypes { // ok
20      /* Causes parse failure */
21      Rectangle2D.@Ann Double rect = null;
22  
23      /* Causes parse failure */
24      public final Rectangle2D.@Ann Double getRect1() {
25          return new Rectangle2D.Double();
26      }
27  
28      /* Causes parse failure */
29      public final Rectangle2D.Double getRect2() {
30          return new Rectangle2D.@Ann Double();
31      }
32  
33      /* Amazingly does not cause parse failure */
34      public final Rectangle2D.Double getRect3() {
35          Rectangle2D.@Ann Double rect = null;
36          return rect;
37      }
38  }
39  
40  @Target({ ElementType.TYPE_USE })
41  @interface Ann {
42  }