1
2
3
4
5
6
7
8
9 package com.puppycrawl.tools.checkstyle.checks.whitespace.separatorwrap;
10
11 public class InputSeparatorWrapForTestComma<T extends FooForTestComma
12 & BarForTestComma> {
13 public void goodCase() throws FooException4TC, BarException4TC
14 {
15 int i = 0;
16 String s = "ffffooooString";
17 s
18 .isEmpty();
19 s.isEmpty();
20 try {
21 foo(i, s);
22 } catch (FooException4TC |
23 BarException4TC e) {}
24 foo(i,
25 s);
26 }
27 public static void foo(int i, String s) throws FooException4TC, BarException4TC
28 {
29
30 }
31 }
32
33 class badCaseForTestComma<T extends FooForTestComma & BarForTestComma> {
34
35
36 public void goodCaseForTestComma(int... aFoo) throws FooException4TC, BarException4TC
37 {
38 String s = "ffffooooString";
39 s.
40 isEmpty();
41 try {
42 foo(1, s);
43 } catch (FooException4TC
44 | BarException4TC e) {}
45
46 foo(1
47 ,s);
48 int[] i;
49 }
50 public static String foo(int i, String s) throws FooException4TC, BarException4TC
51 {
52 return new StringBuilder("")
53 .append("", 0, 1)
54 .append("")
55 .toString();
56 }
57 }
58
59 interface FooForTestComma {
60
61 }
62
63 interface BarForTestComma {
64
65 }
66
67 class FooException4TC extends Exception {
68
69 }
70
71 class BarException4TC extends Exception {
72
73 }