Fix Loops should not be infinite (squid:S2189) - suppress this check

This commit is contained in:
Jano Svitok 2018-07-30 11:40:12 +02:00
parent aef604459b
commit c40420a64a
2 changed files with 2 additions and 0 deletions

View File

@ -18,6 +18,7 @@ public class DeviceWatcher implements Runnable {
watch();
}
@SuppressWarnings("squid:S2189") // watcher is stopped by closing transport
public void watch() {
try {
while (true) {

View File

@ -29,6 +29,7 @@ public abstract class SocketServer implements Runnable {
return port;
}
@SuppressWarnings("squid:S2189") // server is stopped by closing SocketServer
@Override
public void run() {
try {