1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package com.puppycrawl.tools.checkstyle.checks.suppresswarningsholder;
17
18 import static com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck.MSG_KEY;
19
20
21
22 public class InputSuppressWarningsHolderAlias6 {
23
24 void testMethod(String str) {
25 str = MSG_KEY;
26 System.out.println("This is a short line.");
27
28 System.out.println("This line is long and exceeds the default limit of 80 characters.");
29
30
31
32 }
33
34 @SuppressWarnings("Line")
35 void testMethod2(String str) {
36 str = MSG_KEY;
37 System.out.println("This is a short line.");
38
39 System.out.println("This line is long and exceeds the default limit of 80 characters.");
40
41
42
43 }
44
45 @SuppressWarnings("LIne")
46 void testMethod3(String str) {
47 str = MSG_KEY;
48 System.out.println("This is a short line.");
49
50 System.out.println("This line exceeds the limit of 75 characters.");
51
52 }
53
54 void testMethod4(String str) {
55 str = MSG_KEY;
56 System.out.println("This is a short line.");
57
58 System.out.println("This line exceeds the limit of 75 characters.");
59
60 }
61
62
63
64
65
66
67 void testMethod5(String str) {
68 str = MSG_KEY;
69 System.out.println("This is a short line.");
70 }
71
72 @SuppressWarnings("LINE")
73
74
75
76
77
78 void testMethod6(String str) {
79 str = MSG_KEY;
80 System.out.println("This is a short line.");
81 }
82 }