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

有時候這個告警是多餘的,例如咱們手寫的監控線程。oop

若是有消除告警強迫症。在線程的執行方法上加入註解。spa

@SuppressWarnings("InfiniteLoopStatement")
public void run() {
    ...
}
相關文章
相關標籤/搜索