| Severity | 2 |
|---|---|
| Enabled | yes |
| Waivable | |
| Violation |
private void work() {
try {
if (working) {
wait(TIMEOUT);
}
} catch (InterruptedException e) {
logger.debug(STOP_TXT);
}
}
|
| Fix |
private void work() {
try {
while (working) {
wait(TIMEOUT);
}
} catch (InterruptedException e) {
logger.debug(STOP_TXT);
}
}
|