summaryrefslogtreecommitdiffstats
path: root/cps-ri/src
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-ri/src
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-ri/src')
-rw-r--r--cps-ri/src/main/java/org/onap/cps/spi/entities/Dataspace.java2
-rw-r--r--cps-ri/src/main/java/org/onap/cps/spi/entities/JsonDataEntity.java2
-rwxr-xr-xcps-ri/src/main/java/org/onap/cps/spi/entities/Module.java10
-rwxr-xr-xcps-ri/src/main/java/org/onap/cps/spi/repository/DataspaceRepository.java1
4 files changed, 7 insertions, 8 deletions
diff --git a/cps-ri/src/main/java/org/onap/cps/spi/entities/Dataspace.java b/cps-ri/src/main/java/org/onap/cps/spi/entities/Dataspace.java
index aeab4f844b..9f127f432a 100644
--- a/cps-ri/src/main/java/org/onap/cps/spi/entities/Dataspace.java
+++ b/cps-ri/src/main/java/org/onap/cps/spi/entities/Dataspace.java
@@ -59,7 +59,7 @@ public class Dataspace implements Serializable {
*
* @param name the Dataspace name.
*/
- public Dataspace(String name) {
+ public Dataspace(final String name) {
this.name = name;
}
} \ No newline at end of file
diff --git a/cps-ri/src/main/java/org/onap/cps/spi/entities/JsonDataEntity.java b/cps-ri/src/main/java/org/onap/cps/spi/entities/JsonDataEntity.java
index 413362e384..bd147bf73c 100644
--- a/cps-ri/src/main/java/org/onap/cps/spi/entities/JsonDataEntity.java
+++ b/cps-ri/src/main/java/org/onap/cps/spi/entities/JsonDataEntity.java
@@ -48,7 +48,7 @@ public class JsonDataEntity {
@Column
private String jsonStructure;
- public JsonDataEntity(String jsonStructure) {
+ public JsonDataEntity(final String jsonStructure) {
this.jsonStructure = jsonStructure;
}
}
diff --git a/cps-ri/src/main/java/org/onap/cps/spi/entities/Module.java b/cps-ri/src/main/java/org/onap/cps/spi/entities/Module.java
index ef6895c7d4..7043c73952 100755
--- a/cps-ri/src/main/java/org/onap/cps/spi/entities/Module.java
+++ b/cps-ri/src/main/java/org/onap/cps/spi/entities/Module.java
@@ -36,7 +36,6 @@ import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
-
/**
* Entity to store a yang module.
*/
@@ -73,12 +72,13 @@ public class Module implements Serializable {
/**
* Initialize a module entity.
*
- * @param namespace the module namespace.
+ * @param namespace the module namespace.
* @param moduleContent the module content.
- * @param revision the revision number of the module.
- * @param dataspace the dataspace related to the module.
+ * @param revision the revision number of the module.
+ * @param dataspace the dataspace related to the module.
*/
- public Module(String namespace, String moduleContent, String revision, Dataspace dataspace) {
+ public Module(final String namespace, final String moduleContent, final String revision,
+ final Dataspace dataspace) {
this.namespace = namespace;
this.moduleContent = moduleContent;
this.revision = revision;
diff --git a/cps-ri/src/main/java/org/onap/cps/spi/repository/DataspaceRepository.java b/cps-ri/src/main/java/org/onap/cps/spi/repository/DataspaceRepository.java
index ad8004c07d..daf0b716b7 100755
--- a/cps-ri/src/main/java/org/onap/cps/spi/repository/DataspaceRepository.java
+++ b/cps-ri/src/main/java/org/onap/cps/spi/repository/DataspaceRepository.java
@@ -19,7 +19,6 @@
package org.onap.cps.spi.repository;
-
import java.util.Optional;
import javax.validation.constraints.NotNull;
import org.onap.cps.exceptions.CpsNotFoundException;