From: tkogut Date: Tue, 15 Sep 2020 12:57:10 +0000 (+0200) Subject: [OOM-CPMv2] Fix sonar issue X-Git-Tag: 2.1.0~23^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=2f07cb2a72ede37c6cc54df5a81f0b6a28977f50;p=oom%2Fplatform%2Fcert-service.git [OOM-CPMv2] Fix sonar issue Remove the declaration of thrown exception Issue-ID: OOM-2526 Signed-off-by: tkogut Change-Id: Ifab5c8eca6f78f00eafd79220abc64c413677ca6 --- diff --git a/trustStoreMerger/src/main/java/org/onap/oom/certservice/postprocessor/common/PasswordReader.java b/trustStoreMerger/src/main/java/org/onap/oom/certservice/postprocessor/common/PasswordReader.java index 503e21b8..6e4a5f3a 100644 --- a/trustStoreMerger/src/main/java/org/onap/oom/certservice/postprocessor/common/PasswordReader.java +++ b/trustStoreMerger/src/main/java/org/onap/oom/certservice/postprocessor/common/PasswordReader.java @@ -31,7 +31,7 @@ public final class PasswordReader { private PasswordReader() { } - public static String readPassword(File file) throws PasswordReaderException { + public static String readPassword(File file) { try { return Files.readString(file.toPath()); } catch (IOException e) {