Intellij idea 告警:'while' statement cannot complete without throwing an exception

有时候这个告警是多余的,例如咱们手写的监控线程。oop

若是有消除告警强迫症。在线程的执行方法上加入注解。spa

@SuppressWarnings("InfiniteLoopStatement")
public void run() {
    ...
}
相关文章
相关标签/搜索