mirror of
https://github.com/revanced/jadb.git
synced 2024-11-19 10:39:23 +01:00
Fix Loops should not be infinite (squid:S2189) - suppress this check
This commit is contained in:
parent
aef604459b
commit
c40420a64a
@ -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) {
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user