blob: e9312a1c0dcea0415362364e24c79a1a1648c62d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package com.puppycrawl.tools.checkstyle.checks.misc.descendanttoken;
public class InputDescendantTokenReturnFromCatch {
public void foo() {
try {
System.currentTimeMillis();
} catch (Exception e) {
return;
}
}
public void bar() {
try {
System.currentTimeMillis();
} catch (Exception e) {
if (System.currentTimeMillis() == 0) {
return; // return from if statement
}
}
}
}
|