From: Bruno Sakoto Date: Wed, 14 Jul 2021 15:15:48 +0000 (-0400) Subject: Review checkstyle configuration X-Git-Tag: 0.0.1~14^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F35%2F122635%2F1;p=cps%2Fncmp-dmi-plugin.git Review checkstyle configuration Existing violation is also fixed. Issue-ID: CPS-504 Signed-off-by: Bruno Sakoto Change-Id: Ib7ebb62d0181f92803b5faa64d9a638b17fcbdb8 --- diff --git a/pom.xml b/pom.xml index 1f3c2049..73f6908d 100644 --- a/pom.xml +++ b/pom.xml @@ -202,6 +202,44 @@ org.apache.maven.plugins maven-checkstyle-plugin + + onap-license + + check + + process-sources + + onap-checkstyle/check-license.xml + false + true + false + + ${project.build.sourceDirectory} + + false + warning + true + + + + onap-java-style + + check + + process-sources + + onap-checkstyle/onap-java-style.xml + + ${project.build.sourceDirectory} + + true + true + true + false + warning + true + + cps-java-style diff --git a/src/main/java/org/onap/cps/ncmp/rest/controller/DmiRestController.java b/src/main/java/org/onap/cps/ncmp/rest/controller/DmiRestController.java index 57542102..16fb73a8 100644 --- a/src/main/java/org/onap/cps/ncmp/rest/controller/DmiRestController.java +++ b/src/main/java/org/onap/cps/ncmp/rest/controller/DmiRestController.java @@ -37,7 +37,7 @@ public class DmiRestController implements DmiPluginApi { @Override public ResponseEntity helloWorld() { - final var helloWorld = dmiService.getHelloWorld() ; + final var helloWorld = dmiService.getHelloWorld(); return new ResponseEntity<>(helloWorld, HttpStatus.OK); }