View Javadoc
1   package com.puppycrawl.tools.checkstyle.grammars.java8;
2   
3   import java.awt.geom.Rectangle2D;
4   import java.lang.annotation.ElementType;
5   import java.lang.annotation.Target;
6   
7   
8   public class InputTypeUseAnnotationsOnQualifiedTypes {
9       /* Causes parse failure */
10      Rectangle2D.@Ann Double rect = null;
11  
12      /* Causes parse failure */
13      public final Rectangle2D.@Ann Double getRect1() {
14          return new Rectangle2D.Double();
15      }
16  
17      /* Causes parse failure */
18      public final Rectangle2D.Double getRect2() {
19          return new Rectangle2D.@Ann Double();
20      }
21  
22      /* Amazingly does not cause parse failure */
23      public final Rectangle2D.Double getRect3() {
24          Rectangle2D.@Ann Double rect = null;
25          return rect;
26      }
27  }
28  
29  @Target({ ElementType.TYPE_USE })
30  @interface Ann {
31  }