summaryrefslogtreecommitdiffstats
path: root/cps-service
diff options
context:
space:
mode:
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()));
}
}