From: tkogut Date: Mon, 21 Sep 2020 06:03:31 +0000 (+0200) Subject: [OOM-CPMv2] Fix sonar issue X-Git-Tag: 2.1.0~3 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=5ac128870714f05bed81372497ada1b881fd791b;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: Ie68c35e232504d012d4bf1d73ae775b2c0742d96 --- diff --git a/certServicePostProcessor/src/main/java/org/onap/oom/certservice/postprocessor/common/FileTools.java b/certServicePostProcessor/src/main/java/org/onap/oom/certservice/postprocessor/common/FileTools.java index 620d8088..673a3f61 100644 --- a/certServicePostProcessor/src/main/java/org/onap/oom/certservice/postprocessor/common/FileTools.java +++ b/certServicePostProcessor/src/main/java/org/onap/oom/certservice/postprocessor/common/FileTools.java @@ -31,7 +31,7 @@ public final class FileTools { private static final Logger LOGGER = LoggerFactory.getLogger(FileTools.class); private static final String BACKUP_EXTENSION = ".bak"; - public void createBackup(File file) throws CreateBackupException { + public void createBackup(File file) { LOGGER.debug("Try to create a backup of the file: {}", file.getPath()); File backupFile = new File(file.getAbsolutePath() + BACKUP_EXTENSION); try {