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