1 package com.puppycrawl.tools.checkstyle.checks.annotation.annotationonsameline; 2 3 public class InputAnnotationOnSameLineCheck { 4 5 @Annotation int x; 6 7 int y; 8 9 @Annotation 10 @SomeClass.Annotation 11 @java.lang.Deprecated 12 public int getX() { 13 return (int) x; 14 } 15 16 } 17 18 class SomeClass { 19 20 @interface Annotation { 21 } 22 23 } 24 25 @interface Annotation { 26 }