1
2
3
4
5
6
7
8
9 package com.puppycrawl.tools.checkstyle.checks.annotation.annotationonsameline;
10
11 import org.junit.Before;
12
13
14 class Example1 {
15
16
17 @SuppressWarnings("deprecation")
18 public Example1() {
19 }
20
21 @SuppressWarnings("unchecked") public void fun2() {
22 }
23
24 public void fun1() {
25 }
26
27 }
28
29 @SuppressWarnings("unchecked") class Test1 extends Example1 {
30
31 @Deprecated public Test1() {
32 }
33
34 @Override
35 public void fun1() {
36 }
37
38 @Before
39 @Override public void fun2() {
40 }
41
42
43 @SuppressWarnings("deprecation")
44 @Before public void fun3() {
45 }
46
47 }
48