blob: 1ae5bbd72856a26bf25cac9cce3d93756667d04f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
package com.puppycrawl.tools.checkstyle.checks.coding;
public class InputIllegalCatch2 {
public void foo() throws OneMoreException {
try {
foo1();
} catch (RuntimeException | SQLException e) {}
try {
foo1();
} catch (RuntimeException | SQLException | OneMoreException e) {}
try {
foo1();
} catch (OneMoreException | RuntimeException | SQLException e) {}
try {
foo1();
} catch (OneMoreException | SQLException | RuntimeException e) {}
}
private void foo1() throws RuntimeException, SQLException, OneMoreException {
}
private class SQLException extends Exception {
}
private class OneMoreException extends Exception {
}
}
|