Fix some new Sonar smells

This commit is contained in:
Artem Bilan
2020-10-07 12:31:44 -04:00
parent d8dd19106c
commit 94e6521510
2 changed files with 8 additions and 4 deletions

View File

@@ -175,7 +175,7 @@ public class TcpNetServerConnectionFactory extends AbstractServerConnectionFacto
}
}
}
catch (IOException ex) {
catch (IOException ex) { // NOSONAR flow control via exceptions
// don't log an error if we had a good socket once and now it's closed
if (ex instanceof SocketException && theServerSocket != null) { // NOSONAR flow control via exceptions
logger.info("Server Socket closed");