diff options
author | 2020-12-01 15:28:25 +0100 | |
---|---|---|
committer | 2020-12-02 08:17:25 +0100 | |
commit | b1740000e774ca633309e640f190cdcd74aa8241 (patch) | |
tree | a9d5a861b4f056c661d3742a534a9635838aa064 /cps-service/src | |
parent | c8f2136670321731ec97d027d427af2ec9fd1077 (diff) |
Fix checkstyle violations for "final" keyword
Issue-ID: CPS-119
Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech>
Change-Id: I871a361937ed30047fe89ff2d2b17499cddad56c
Diffstat (limited to 'cps-service/src')
6 files changed, 13 insertions, 13 deletions
diff --git a/cps-service/src/main/java/org/onap/cps/api/impl/CpServiceImpl.java b/cps-service/src/main/java/org/onap/cps/api/impl/CpServiceImpl.java index 93ed8b846..3daf9a0d6 100755 --- a/cps-service/src/main/java/org/onap/cps/api/impl/CpServiceImpl.java +++ b/cps-service/src/main/java/org/onap/cps/api/impl/CpServiceImpl.java @@ -88,7 +88,7 @@ public class CpServiceImpl implements CpService { } @Override - public void deleteJsonById(int jsonObjectId) { + public void deleteJsonById(final int jsonObjectId) { dataPersistenceService.deleteJsonById(jsonObjectId); } @@ -103,7 +103,7 @@ public class CpServiceImpl implements CpService { } @Override - public String createAnchor(AnchorDetails anchorDetails) { + public String createAnchor(final AnchorDetails anchorDetails) { return fragmentPersistenceService.createAnchor(anchorDetails); } }
\ No newline at end of file diff --git a/cps-service/src/main/java/org/onap/cps/api/impl/Fragment.java b/cps-service/src/main/java/org/onap/cps/api/impl/Fragment.java index 90c92f905..0f785b718 100644 --- a/cps-service/src/main/java/org/onap/cps/api/impl/Fragment.java +++ b/cps-service/src/main/java/org/onap/cps/api/impl/Fragment.java @@ -76,7 +76,7 @@ public class Fragment { * @param qnames array of qualified names that points the schema node for this fragment * @param xpath the xpath for this fragment */ - private Fragment(final Fragment parentFragment, final Module module, final QName[] qnames, String xpath) { + private Fragment(final Fragment parentFragment, final Module module, final QName[] qnames, final String xpath) { this.parentFragment = parentFragment; this.module = module; this.qnames = qnames; diff --git a/cps-service/src/main/java/org/onap/cps/exceptions/CpsException.java b/cps-service/src/main/java/org/onap/cps/exceptions/CpsException.java index 4dd19dd82..acdada14a 100644 --- a/cps-service/src/main/java/org/onap/cps/exceptions/CpsException.java +++ b/cps-service/src/main/java/org/onap/cps/exceptions/CpsException.java @@ -36,7 +36,7 @@ public class CpsException extends RuntimeException { * * @param cause the cause of the exception */ - public CpsException(Throwable cause) { + public CpsException(final Throwable cause) { super(cause.getMessage(), cause); } @@ -46,7 +46,7 @@ public class CpsException extends RuntimeException { * @param message the error message * @param cause the cause of the exception */ - public CpsException(String message, Throwable cause) { + public CpsException(final String message, final Throwable cause) { super(message, cause); } @@ -56,7 +56,7 @@ public class CpsException extends RuntimeException { * @param message the error message * @param details the error details */ - public CpsException(String message, String details) { + public CpsException(final String message, final String details) { super(message); this.details = details; } diff --git a/cps-service/src/main/java/org/onap/cps/exceptions/CpsNotFoundException.java b/cps-service/src/main/java/org/onap/cps/exceptions/CpsNotFoundException.java index 4613da8f2..e66c3bd3b 100644 --- a/cps-service/src/main/java/org/onap/cps/exceptions/CpsNotFoundException.java +++ b/cps-service/src/main/java/org/onap/cps/exceptions/CpsNotFoundException.java @@ -32,7 +32,7 @@ public class CpsNotFoundException extends CpsException { * * @param cause the cause of the exception */ - public CpsNotFoundException(Throwable cause) { + public CpsNotFoundException(final Throwable cause) { super(cause.getMessage(), cause); } @@ -42,7 +42,7 @@ public class CpsNotFoundException extends CpsException { * @param message the error message * @param cause the cause of the exception */ - public CpsNotFoundException(String message, Throwable cause) { + public CpsNotFoundException(final String message, final Throwable cause) { super(message, cause); } @@ -52,7 +52,7 @@ public class CpsNotFoundException extends CpsException { * @param message the error message * @param details the error details */ - public CpsNotFoundException(String message, String details) { + public CpsNotFoundException(final String message, final String details) { super(message, details); } } diff --git a/cps-service/src/main/java/org/onap/cps/exceptions/CpsValidationException.java b/cps-service/src/main/java/org/onap/cps/exceptions/CpsValidationException.java index dba9c165b..8e049c66e 100644 --- a/cps-service/src/main/java/org/onap/cps/exceptions/CpsValidationException.java +++ b/cps-service/src/main/java/org/onap/cps/exceptions/CpsValidationException.java @@ -29,7 +29,7 @@ public class CpsValidationException extends CpsException { * * @param cause the cause of the exception */ - public CpsValidationException(Throwable cause) { + public CpsValidationException(final Throwable cause) { super(cause.getMessage(), cause); } @@ -39,7 +39,7 @@ public class CpsValidationException extends CpsException { * @param message the error message * @param cause the cause of the exception */ - public CpsValidationException(String message, Throwable cause) { + public CpsValidationException(final String message, final Throwable cause) { super(message, cause); } @@ -49,7 +49,7 @@ public class CpsValidationException extends CpsException { * @param message the error message * @param details the error details */ - public CpsValidationException(String message, String details) { + public CpsValidationException(final String message, final String details) { super(message, details); } } diff --git a/cps-service/src/test/java/org/onap/cps/TestUtils.java b/cps-service/src/test/java/org/onap/cps/TestUtils.java index 07647520b..3a2a4e3a5 100644 --- a/cps-service/src/test/java/org/onap/cps/TestUtils.java +++ b/cps-service/src/test/java/org/onap/cps/TestUtils.java @@ -35,7 +35,7 @@ public class TestUtils { * @throws IOException when there is an IO issue */ public static String getResourceFileContent(final String filename) throws IOException { - File file = new File(ClassLoader.getSystemClassLoader().getResource(filename).getFile()); + final File file = new File(ClassLoader.getSystemClassLoader().getResource(filename).getFile()); return new String(Files.readAllBytes(file.toPath())); } } |