From ad4a3a514bd943df22a2e27d78f0706d412ebe9f Mon Sep 17 00:00:00 2001 From: PatrikBuhr Date: Thu, 14 Mar 2019 14:27:30 +0000 Subject: Thread safety issues The TrustManager is now loaded and initialized once in a thread safe way (instead of each time it is used). Removed some unneeded wrappers. Using AutoCloseable for FTP clients to make sure they are closed in case of exceptions. Made AppConfig thread safe. Change-Id: Ia6a2c8a76bf960013180fdd7c53ae0ff17b26505 Issue-ID: DCAEGEN2-1118 Signed-off-by: PatrikBuhr --- .../collectors/datafile/exceptions/DatafileTaskException.java | 4 ---- 1 file changed, 4 deletions(-) (limited to 'datafile-commons') diff --git a/datafile-commons/src/main/java/org/onap/dcaegen2/collectors/datafile/exceptions/DatafileTaskException.java b/datafile-commons/src/main/java/org/onap/dcaegen2/collectors/datafile/exceptions/DatafileTaskException.java index 442b766b..0eaa7a17 100644 --- a/datafile-commons/src/main/java/org/onap/dcaegen2/collectors/datafile/exceptions/DatafileTaskException.java +++ b/datafile-commons/src/main/java/org/onap/dcaegen2/collectors/datafile/exceptions/DatafileTaskException.java @@ -25,10 +25,6 @@ public class DatafileTaskException extends Exception { private static final long serialVersionUID = 1L; - public DatafileTaskException(Exception e) { - super(e); - } - public DatafileTaskException(String message) { super(message); } -- cgit 1.2.3-korg