From: ToineSiebelink Date: Wed, 30 Mar 2022 08:56:24 +0000 (+0100) Subject: Enable @surpressWarnings for Checkstyle X-Git-Tag: 3.3.0~1 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=oparent.git;a=commitdiff_plain;h=f95bafef87324b634305e1b98cf17838aa998d26 Enable @surpressWarnings for Checkstyle Documentation is a bit ambigous but below changes should enable @SupressWarnings (in source code) for checkstyle rules we have some false positives from Checkstyle we want to supress this way e.g. https://tinyurl.com/4b527vvr lines 258/259; checkstyle forced us to add those lines, instead I want to supress the warning on this method using annotation like @supresswraning(checkstyle:missingSwitchDefault)) Issue-ID: CPS-475 Signed-off-by: ToineSiebelink Change-Id: I07f865a279b4951f2ce3240fedcec6b5c46933e0 --- diff --git a/checkstyle/src/main/resources/onap-checkstyle/onap-java-style.xml b/checkstyle/src/main/resources/onap-checkstyle/onap-java-style.xml index 4f03bae..b3b4df9 100644 --- a/checkstyle/src/main/resources/onap-checkstyle/onap-java-style.xml +++ b/checkstyle/src/main/resources/onap-checkstyle/onap-java-style.xml @@ -54,6 +54,7 @@ default="checkstyle-suppressions.xml" /> + @@ -332,5 +333,6 @@ default="checkstyle-xpath-suppressions.xml" /> +