This commit is contained in:
RetGal 2021-02-04 23:53:08 +01:00
parent d294ae7959
commit 8ee26e2039
2 changed files with 3 additions and 4 deletions

View File

@ -2,7 +2,6 @@ package mpo.dayon.assistant.network;
import mpo.dayon.assisted.capture.CaptureEngineConfiguration; import mpo.dayon.assisted.capture.CaptureEngineConfiguration;
import mpo.dayon.assisted.compressor.CompressorEngineConfiguration; import mpo.dayon.assisted.compressor.CompressorEngineConfiguration;
import mpo.dayon.assisted.network.NetworkAssistedEngine;
import mpo.dayon.common.concurrent.RunnableEx; import mpo.dayon.common.concurrent.RunnableEx;
import mpo.dayon.common.configuration.ReConfigurable; import mpo.dayon.common.configuration.ReConfigurable;
import mpo.dayon.common.event.Listeners; import mpo.dayon.common.event.Listeners;
@ -134,7 +133,7 @@ public class NetworkAssistantEngine extends NetworkEngine implements ReConfigura
} }
@java.lang.SuppressWarnings("squid:S2189") @java.lang.SuppressWarnings("squid:S2189")
private void receivingLoop() throws KeyStoreException, NoSuchAlgorithmException, CertificateException, UnrecoverableKeyException, KeyManagementException { private void receivingLoop() throws NoSuchAlgorithmException, KeyManagementException {
in = null; in = null;
out = null; out = null;
@ -206,7 +205,7 @@ public class NetworkAssistantEngine extends NetworkEngine implements ReConfigura
} }
@java.lang.SuppressWarnings("squid:S2189") @java.lang.SuppressWarnings("squid:S2189")
private void fileReceivingLoop() throws KeyStoreException, NoSuchAlgorithmException, CertificateException, UnrecoverableKeyException, KeyManagementException { private void fileReceivingLoop() {
fileIn = null; fileIn = null;
fileOut = null; fileOut = null;

View File

@ -84,7 +84,7 @@ public class NetworkAssistedEngine extends NetworkEngine
this.configuration = configuration; this.configuration = configuration;
} }
@SuppressWarnings("java:S2095") // sockets MUST NOT be closed @SuppressWarnings("java:S2095") // our sockets MUST NOT be closed
public void start() throws IOException, NoSuchAlgorithmException, KeyManagementException { public void start() throws IOException, NoSuchAlgorithmException, KeyManagementException {
Log.info("Connecting to [" + configuration.getServerName() + "][" + configuration.getServerPort() + "]..."); Log.info("Connecting to [" + configuration.getServerName() + "][" + configuration.getServerPort() + "]...");