blob: bfc0aced52305746623253c34b86be45d71fc351 (
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
|
package com.puppycrawl.tools.checkstyle.checks;
public class InputReturnFromFinally {
public void foo() {
try {
System.currentTimeMillis();
} finally {
return;
}
}
public void bar() {
try {
System.currentTimeMillis();
} finally {
if (System.currentTimeMillis() == 0) {
return; // return from if statement
}
}
}
public void thisNull() {
boolean result = (this == null) || (null == this);
boolean result2 = (this != null) && (null != this);
boolean result3 = (this.getClass().getName() == String.valueOf(null == System.getProperty("abc")));
}
}
|