1
2
3
4
5
6
7
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 {
20
21 Rectangle2D.@Ann Double rect = null;
22
23
24 public final Rectangle2D.@Ann Double getRect1() {
25 return new Rectangle2D.Double();
26 }
27
28
29 public final Rectangle2D.Double getRect2() {
30 return new Rectangle2D.@Ann Double();
31 }
32
33
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 }