aboutsummaryrefslogtreecommitdiffstats
path: root/cps-service
diff options
context:
space:
mode:
authorClaudio David Gasparini <claudio.gasparini@pantheon.tech>2020-12-01 15:28:25 +0100
committerClaudio David Gasparini <claudio.gasparini@pantheon.tech>2020-12-02 08:17:25 +0100
commitb1740000e774ca633309e640f190cdcd74aa8241 (patch)
treea9d5a861b4f056c661d3742a534a9635838aa064 /cps-service
parentc8f2136670321731ec97d027d427af2ec9fd1077 (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')
-rwxr-xr-xcps-service/src/main/java/org/onap/cps/api/impl/CpServiceImpl.java4
-rw-r--r--cps-service/src/main/java/org/onap/cps/api/impl/Fragment.java2
-rw-r--r--cps-service/src/main/java/org/onap/cps/exceptions/CpsException.java6
-rw-r--r--cps-service/src/main/java/org/onap/cps/exceptions/CpsNotFoundException.java6
-rw-r--r--cps-service/src/main/java/org/onap/cps/exceptions/CpsValidationException.java6
-rw-r--r--cps-service/src/test/java/org/onap/cps/TestUtils.java2
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 93ed8b8468..3daf9a0d69 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 90c92f905e..0f785b718f 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 4dd19dd82b..acdada14ae 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 4613da8f23..e66c3bd3b9 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 dba9c165b8..8e049c66e4 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 07647520b0..3a2a4e3a55 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()));
}
}