範例
public
class
ClassA {
int
i;
public void
methodA() {
if<
(i <= Integer.MAX_VALUE) {
// ...
}
}
}
解決方案
重新考量邏輯,因為 i <= Integer.MAX_VALUE 一律是 true。