From ac57d4884350a9cd15e457f3fae2c9a7c2bfdd61 Mon Sep 17 00:00:00 2001 From: bsorrentino Date: Fri, 31 Jul 2020 11:35:06 +0200 Subject: [PATCH] clean code --- .../processor/AbstractAnnotationProcessorMojo.java | 10 ---------- .../plugin/processor/MainAnnotationProcessorMojo.java | 4 ---- .../plugin/processor/TestAnnotationProcessorMojo.java | 4 ---- 3 files changed, 18 deletions(-) diff --git a/processor/src/main/java/org/bsc/maven/plugin/processor/AbstractAnnotationProcessorMojo.java b/processor/src/main/java/org/bsc/maven/plugin/processor/AbstractAnnotationProcessorMojo.java index 0a094f9..905870a 100644 --- a/processor/src/main/java/org/bsc/maven/plugin/processor/AbstractAnnotationProcessorMojo.java +++ b/processor/src/main/java/org/bsc/maven/plugin/processor/AbstractAnnotationProcessorMojo.java @@ -104,7 +104,6 @@ public abstract class AbstractAnnotationProcessorMojo extends AbstractMojo /** * */ - //@MojoParameter(expression="${plugin.artifacts}", readonly = true ) @Parameter(property="plugin.artifacts", readonly=true) private java.util.List pluginArtifacts; @@ -112,7 +111,6 @@ public abstract class AbstractAnnotationProcessorMojo extends AbstractMojo * Specify the directory where to place generated source files (same behaviour of -s option) * */ - //@MojoParameter(required = false, description = "Specify the directory where to place generated source files (same behaviour of -s option)") @Parameter private File outputDirectory; @@ -120,7 +118,6 @@ public abstract class AbstractAnnotationProcessorMojo extends AbstractMojo * Annotation Processor FQN (Full Qualified Name) - when processors are not specified, the default discovery mechanism will be used * */ - //@MojoParameter(required = false, description = "Annotation Processor FQN (Full Qualified Name) - when processors are not specified, the default discovery mechanism will be used") @Parameter private String[] processors; @@ -128,7 +125,6 @@ public abstract class AbstractAnnotationProcessorMojo extends AbstractMojo * Additional compiler arguments * */ - //@MojoParameter(required = false, description = "Additional compiler arguments") @Parameter private String compilerArguments; @@ -142,14 +138,12 @@ public abstract class AbstractAnnotationProcessorMojo extends AbstractMojo /** * Controls whether or not the output directory is added to compilation */ - //@MojoParameter(required = false, description = "Controls whether or not the output directory is added to compilation") @Parameter private Boolean addOutputDirectoryToCompilationSources; /** * Indicates whether the build will continue even if there are compilation errors; defaults to true. */ - //@MojoParameter(required = true, defaultValue = "true", expression = "${annotation.failOnError}", description = "Indicates whether the build will continue even if there are compilation errors; defaults to true.") @Parameter( defaultValue="true", required=true, property="annotation.failOnError" ) private Boolean failOnError = true; @@ -157,7 +151,6 @@ public abstract class AbstractAnnotationProcessorMojo extends AbstractMojo * Indicates whether the compiler output should be visible, defaults to true. * */ - //@MojoParameter(required = true, defaultValue = "true", expression = "${annotation.outputDiagnostics}", description = "Indicates whether the compiler output should be visible, defaults to true.") @Parameter( defaultValue="true", required=true, property="annotation.outputDiagnostics" ) private boolean outputDiagnostics = true; @@ -165,21 +158,18 @@ public abstract class AbstractAnnotationProcessorMojo extends AbstractMojo * System properties set before processor invocation. * */ - //@MojoParameter(required = false, description = "System properties set before processor invocation.") @Parameter private java.util.Map systemProperties; /** * includes pattern */ - //@MojoParameter( description="includes pattern") @Parameter private String[] includes; /** * excludes pattern */ - //@MojoParameter( description="excludes pattern") @Parameter private String[] excludes; diff --git a/processor/src/main/java/org/bsc/maven/plugin/processor/MainAnnotationProcessorMojo.java b/processor/src/main/java/org/bsc/maven/plugin/processor/MainAnnotationProcessorMojo.java index ca97696..ba5948f 100644 --- a/processor/src/main/java/org/bsc/maven/plugin/processor/MainAnnotationProcessorMojo.java +++ b/processor/src/main/java/org/bsc/maven/plugin/processor/MainAnnotationProcessorMojo.java @@ -41,7 +41,6 @@ public class MainAnnotationProcessorMojo extends AbstractAnnotationProcessorMojo * project classpath * */ - //@MojoParameter(expression = "${project.compileClasspathElements}", required = true, readonly = true) @Parameter( defaultValue="${project.compileClasspathElements}", required=true, readonly=true) private List classpathElements; @@ -49,7 +48,6 @@ public class MainAnnotationProcessorMojo extends AbstractAnnotationProcessorMojo * project sourceDirectory * */ - //@MojoParameter(expression = "${project.build.sourceDirectory}", required = true) @Parameter( defaultValue="${project.build.sourceDirectory}", required = true) private File sourceDirectory; @@ -57,7 +55,6 @@ public class MainAnnotationProcessorMojo extends AbstractAnnotationProcessorMojo * default output directory * */ - //@MojoParameter(expression = "${project.build.directory}/generated-sources/apt", required = true) @Parameter( defaultValue="${project.build.directory}/generated-sources/apt", required = true) private File defaultOutputDirectory; @@ -65,7 +62,6 @@ public class MainAnnotationProcessorMojo extends AbstractAnnotationProcessorMojo * Set the destination directory for class files (same behaviour of -d option) * */ - //@MojoParameter(required = false, expression="${project.build.outputDirectory}", description = "Set the destination directory for class files (same behaviour of -d option)") @Parameter( defaultValue="${project.build.outputDirectory}") private File outputClassDirectory; diff --git a/processor/src/main/java/org/bsc/maven/plugin/processor/TestAnnotationProcessorMojo.java b/processor/src/main/java/org/bsc/maven/plugin/processor/TestAnnotationProcessorMojo.java index d67e566..ee96ca5 100644 --- a/processor/src/main/java/org/bsc/maven/plugin/processor/TestAnnotationProcessorMojo.java +++ b/processor/src/main/java/org/bsc/maven/plugin/processor/TestAnnotationProcessorMojo.java @@ -42,7 +42,6 @@ public class TestAnnotationProcessorMojo extends AbstractAnnotationProcessorMojo * project classpath * */ - //@MojoParameter(expression = "${project.testClasspathElements}", required = true, readonly = true) @Parameter( defaultValue="${project.testClasspathElements}", required=true, readonly=true) private List classpathElements; @@ -50,14 +49,12 @@ public class TestAnnotationProcessorMojo extends AbstractAnnotationProcessorMojo /** * */ - //@MojoParameter(expression = "${project.build.testSourceDirectory}", required = true) @Parameter( defaultValue="${project.build.testSourceDirectory}", required = true) private File sourceDirectory; /** * */ - //@MojoParameter(expression = "${project.build.directory}/generated-sources/apt-test", required = true) @Parameter( defaultValue="${project.build.directory}/generated-sources/apt-test", required = true) private File defaultOutputDirectory; @@ -65,7 +62,6 @@ public class TestAnnotationProcessorMojo extends AbstractAnnotationProcessorMojo * Set the destination directory for class files (same behaviour of -d option) * */ - //@MojoParameter(required = false, expression="${project.build.testOutputDirectory}", description = "Set the destination directory for class files (same behaviour of -d option)") @Parameter( defaultValue="${project.build.testOutputDirectory}") private File outputClassDirectory;