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