summaryrefslogtreecommitdiffstats
path: root/cps-rest/src/main
diff options
context:
space:
mode:
authorDylanB95EST <dylan.byrne@est.tech>2021-06-21 12:19:26 +0100
committerDylan Byrne <dylan.byrne@est.tech>2021-06-21 11:28:47 +0000
commit65aeb1541379f1be500fbbbb8713bc33167ff0e4 (patch)
tree102f85262b69531f5e85fdce725bacf781c52661 /cps-rest/src/main
parent7aedbc592fecc4e228eeb9a8c7eeeee1be76c3f2 (diff)
Sonar Qube code smell clean up
Declaring Local Variable with Var Instead Issue-ID: CPS-475 Change-Id: I94bb6d4a3234cd9abeba5a495bd2d0439c21c1df Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
Diffstat (limited to 'cps-rest/src/main')
-rwxr-xr-xcps-rest/src/main/java/org/onap/cps/rest/controller/AdminRestController.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/cps-rest/src/main/java/org/onap/cps/rest/controller/AdminRestController.java b/cps-rest/src/main/java/org/onap/cps/rest/controller/AdminRestController.java
index 57b6771940..369ef01c39 100755
--- a/cps-rest/src/main/java/org/onap/cps/rest/controller/AdminRestController.java
+++ b/cps-rest/src/main/java/org/onap/cps/rest/controller/AdminRestController.java
@@ -103,7 +103,7 @@ public class AdminRestController implements CpsAdminApi {
@Override
public ResponseEntity<SchemaSetDetails> getSchemaSet(final String dataspaceName, final String schemaSetName) {
final var schemaSet = cpsModuleService.getSchemaSet(dataspaceName, schemaSetName);
- final SchemaSetDetails schemaSetDetails = modelMapper.map(schemaSet, SchemaSetDetails.class);
+ final var schemaSetDetails = modelMapper.map(schemaSet, SchemaSetDetails.class);
return new ResponseEntity<>(schemaSetDetails, HttpStatus.OK);
}
@@ -158,7 +158,7 @@ public class AdminRestController implements CpsAdminApi {
@Override
public ResponseEntity<AnchorDetails> getAnchor(final String dataspaceName, final String anchorName) {
final var anchor = cpsAdminService.getAnchor(dataspaceName, anchorName);
- final AnchorDetails anchorDetails = modelMapper.map(anchor, AnchorDetails.class);
+ final var anchorDetails = modelMapper.map(anchor, AnchorDetails.class);
return new ResponseEntity<>(anchorDetails, HttpStatus.OK);
}