From a0e0c7840f72392152a970d88a5a66d394c4a793 Mon Sep 17 00:00:00 2001 From: Pamela Dragosh Date: Fri, 28 Sep 2018 04:58:26 -0400 Subject: Set drools-pdp checkstyle config Fixed last remaining checkstyle issues along with setting the pom.xml to the correct path setting. Fixed forbidden summary fragments, not allowed to prepend summary with "This method returns" Issue-ID: POLICY-1153 Change-Id: I267842080494132a7b5507731e14f027a3f6fe44 Signed-off-by: Pamela Dragosh --- feature-healthcheck/checkstyle-suppressions.xml | 30 ++++++++++++++++++ feature-healthcheck/pom.xml | 36 ++++++++++++++++++++++ .../drools/healthcheck/AafHealthCheckFilter.java | 2 +- .../policy/drools/healthcheck/HealthCheck.java | 10 +++--- .../policy/drools/healthcheck/RestHealthCheck.java | 2 +- .../healthcheck/TestAafHealthCheckFilter.java | 2 +- 6 files changed, 74 insertions(+), 8 deletions(-) create mode 100644 feature-healthcheck/checkstyle-suppressions.xml (limited to 'feature-healthcheck') diff --git a/feature-healthcheck/checkstyle-suppressions.xml b/feature-healthcheck/checkstyle-suppressions.xml new file mode 100644 index 00000000..ed04d894 --- /dev/null +++ b/feature-healthcheck/checkstyle-suppressions.xml @@ -0,0 +1,30 @@ + + + + + + + + diff --git a/feature-healthcheck/pom.xml b/feature-healthcheck/pom.xml index 1acfb2d1..3ed46abc 100644 --- a/feature-healthcheck/pom.xml +++ b/feature-healthcheck/pom.xml @@ -86,6 +86,42 @@ + + maven-checkstyle-plugin + + + onap-java-style + + check + + process-sources + + + onap-checkstyle/onap-java-style.xml + + ${project.build.sourceDirectory} + true + true + true + + + ${project.baseUri}checkstyle-suppressions.xml + true + true + warning + + + + + + org.onap.oparent + checkstyle + ${oparent.version} + compile + + + diff --git a/feature-healthcheck/src/main/java/org/onap/policy/drools/healthcheck/AafHealthCheckFilter.java b/feature-healthcheck/src/main/java/org/onap/policy/drools/healthcheck/AafHealthCheckFilter.java index 3cb9def6..47a617b3 100644 --- a/feature-healthcheck/src/main/java/org/onap/policy/drools/healthcheck/AafHealthCheckFilter.java +++ b/feature-healthcheck/src/main/java/org/onap/policy/drools/healthcheck/AafHealthCheckFilter.java @@ -24,7 +24,7 @@ import org.onap.policy.common.endpoints.http.server.aaf.AafGranularAuthFilter; import org.onap.policy.drools.server.restful.aaf.AafBase; /** - * Healthcheck AAF Authorization Filter + * Healthcheck AAF Authorization Filter. */ public class AafHealthCheckFilter extends AafGranularAuthFilter { diff --git a/feature-healthcheck/src/main/java/org/onap/policy/drools/healthcheck/HealthCheck.java b/feature-healthcheck/src/main/java/org/onap/policy/drools/healthcheck/HealthCheck.java index d35b7371..40e4f354 100644 --- a/feature-healthcheck/src/main/java/org/onap/policy/drools/healthcheck/HealthCheck.java +++ b/feature-healthcheck/src/main/java/org/onap/policy/drools/healthcheck/HealthCheck.java @@ -201,7 +201,7 @@ class HealthCheckMonitor implements HealthCheck { protected volatile Properties healthCheckProperties = null; /** - * {@inheritDoc} + * {@inheritDoc}. */ @Override public Reports healthCheck() { @@ -242,7 +242,7 @@ class HealthCheckMonitor implements HealthCheck { } /** - * {@inheritDoc} + * {@inheritDoc}. */ @Override public boolean start() { @@ -265,7 +265,7 @@ class HealthCheckMonitor implements HealthCheck { } /** - * {@inheritDoc} + * {@inheritDoc}. */ @Override public boolean stop() { @@ -290,7 +290,7 @@ class HealthCheckMonitor implements HealthCheck { } /** - * {@inheritDoc} + * {@inheritDoc}. */ @Override public void shutdown() { @@ -298,7 +298,7 @@ class HealthCheckMonitor implements HealthCheck { } /** - * {@inheritDoc} + * {@inheritDoc}. */ @Override public synchronized boolean isAlive() { diff --git a/feature-healthcheck/src/main/java/org/onap/policy/drools/healthcheck/RestHealthCheck.java b/feature-healthcheck/src/main/java/org/onap/policy/drools/healthcheck/RestHealthCheck.java index 734a75e0..5047cb26 100644 --- a/feature-healthcheck/src/main/java/org/onap/policy/drools/healthcheck/RestHealthCheck.java +++ b/feature-healthcheck/src/main/java/org/onap/policy/drools/healthcheck/RestHealthCheck.java @@ -49,7 +49,7 @@ import org.onap.policy.drools.healthcheck.HealthCheck.Reports; tags = { @Tag(name = "pdp-d-healthcheck", description = "Drools PDP Healthcheck Operations") } -) + ) public class RestHealthCheck { @GET diff --git a/feature-healthcheck/src/test/java/org/onap/policy/drools/healthcheck/TestAafHealthCheckFilter.java b/feature-healthcheck/src/test/java/org/onap/policy/drools/healthcheck/TestAafHealthCheckFilter.java index 03ca6897..9c34670c 100644 --- a/feature-healthcheck/src/test/java/org/onap/policy/drools/healthcheck/TestAafHealthCheckFilter.java +++ b/feature-healthcheck/src/test/java/org/onap/policy/drools/healthcheck/TestAafHealthCheckFilter.java @@ -24,7 +24,7 @@ import javax.servlet.http.HttpServletRequest; import org.onap.policy.common.utils.network.NetworkUtil; /** - * Healthcheck AAF Authorization Filter + * Healthcheck AAF Authorization Filter. */ public class TestAafHealthCheckFilter extends AafHealthCheckFilter { -- cgit 1.2.3-korg