From ef1d58930d44d153d4e50eb6f666819b313fb8d4 Mon Sep 17 00:00:00 2001 From: Jeremy Landis Date: Mon, 25 Dec 2023 06:20:01 -0500 Subject: [PATCH] [cleanup] Treat 'boolean' only as 'boolean' not boolean wrapper class --- .../codehaus/mojo/spotbugs/BaseViolationCheckMojo.groovy | 7 +++---- .../groovy/org/codehaus/mojo/spotbugs/SpotBugsMojo.groovy | 6 +++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/main/groovy/org/codehaus/mojo/spotbugs/BaseViolationCheckMojo.groovy b/src/main/groovy/org/codehaus/mojo/spotbugs/BaseViolationCheckMojo.groovy index 4f87109b..e32a662f 100644 --- a/src/main/groovy/org/codehaus/mojo/spotbugs/BaseViolationCheckMojo.groovy +++ b/src/main/groovy/org/codehaus/mojo/spotbugs/BaseViolationCheckMojo.groovy @@ -46,7 +46,6 @@ abstract class BaseViolationCheckMojo extends AbstractMojo { /** * Location where generated html will be created. - * */ @Parameter(defaultValue = '${project.reporting.outputDirectory}', required = true) File outputDirectory @@ -277,7 +276,7 @@ abstract class BaseViolationCheckMojo extends AbstractMojo { * @since 1.1 */ @Parameter(defaultValue = "false", property = "spotbugs.relaxed") - Boolean relaxed + boolean relaxed /** * The visitor list to run. This is a comma-delimited list. @@ -327,7 +326,7 @@ abstract class BaseViolationCheckMojo extends AbstractMojo { * @since 2.3.2 */ @Parameter(property = "spotbugs.nested", defaultValue = "false") - Boolean nested + boolean nested /** * Prints a trace of detectors run and classes analyzed to standard output. @@ -336,7 +335,7 @@ abstract class BaseViolationCheckMojo extends AbstractMojo { * @since 2.3.2 */ @Parameter(property = "spotbugs.trace", defaultValue = "false") - Boolean trace + boolean trace /** * Maximum bug ranking to record. diff --git a/src/main/groovy/org/codehaus/mojo/spotbugs/SpotBugsMojo.groovy b/src/main/groovy/org/codehaus/mojo/spotbugs/SpotBugsMojo.groovy index 167c5ba0..2d18e9f9 100644 --- a/src/main/groovy/org/codehaus/mojo/spotbugs/SpotBugsMojo.groovy +++ b/src/main/groovy/org/codehaus/mojo/spotbugs/SpotBugsMojo.groovy @@ -400,7 +400,7 @@ class SpotBugsMojo extends AbstractMavenReport implements SpotBugsPluginsTrait { * @since 1.1 */ @Parameter(defaultValue = "false", property = "spotbugs.relaxed") - Boolean relaxed + boolean relaxed /** * The visitor list to run. This is a comma-delimited list. @@ -458,7 +458,7 @@ class SpotBugsMojo extends AbstractMavenReport implements SpotBugsPluginsTrait { * @since 2.3.2 */ @Parameter(property = "spotbugs.nested", defaultValue = "false") - Boolean nested + boolean nested /** * Prints a trace of detectors run and classes analyzed to standard output. @@ -467,7 +467,7 @@ class SpotBugsMojo extends AbstractMavenReport implements SpotBugsPluginsTrait { * @since 2.3.2 */ @Parameter(property = "spotbugs.trace", defaultValue = "false") - Boolean trace + boolean trace /** * Maximum bug ranking to record.