Put 'empty' comments inside ignored catch blocks

Follow codacy rule against empty blocks.
This commit is contained in:
ghubstan 2020-08-19 11:49:21 -03:00
parent 2ba0ee9d5d
commit ba8b9ccf54
No known key found for this signature in database
GPG key ID: E35592D6800A861E
4 changed files with 4 additions and 0 deletions

View file

@ -188,6 +188,7 @@ public class Scaffold {
firstException = Optional.of(p.getShutdownExceptions().get(0)); firstException = Optional.of(p.getShutdownExceptions().get(0));
} }
} catch (InterruptedException ignored) { } catch (InterruptedException ignored) {
// empty
} }
} }
} }

View file

@ -109,6 +109,7 @@ public class BitcoinDaemon extends AbstractLinuxProcess implements LinuxProcess
log.info("Stopped"); log.info("Stopped");
} catch (InterruptedException ignored) { } catch (InterruptedException ignored) {
// empty
} catch (IOException e) { } catch (IOException e) {
this.shutdownExceptions.add(new IllegalStateException("Error shutting down bitcoind.", e)); this.shutdownExceptions.add(new IllegalStateException("Error shutting down bitcoind.", e));
} }

View file

@ -80,6 +80,7 @@ class ThreadedStreamHandler extends Thread {
try { try {
Thread.sleep(millis); Thread.sleep(millis);
} catch (InterruptedException ignored) { } catch (InterruptedException ignored) {
// empty
} }
} }

View file

@ -88,6 +88,7 @@ public class ApiTestCase {
try { try {
MILLISECONDS.sleep(ms); MILLISECONDS.sleep(ms);
} catch (InterruptedException ignored) { } catch (InterruptedException ignored) {
// empty
} }
} }
} }