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