示例
public
class
ClassA {
byte
b;
public void
methodA() {
if
(b <= Byte.MAX_VALUE) {
// ...
}
}
}
解决方案
因为 b <= Byte.MAX_VALUE 将始终为真,请重新考虑逻辑。