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