blob: 68702157faa21b244deba4733dc4e4be58f9aac4 (
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;
public class InputReturnFromCatch {
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
}
}
}
}
|