Skip to content

Commit

Permalink
avoid compiler deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Bananeweizen committed May 10, 2024
1 parent 4d7a39c commit a43c011
Showing 1 changed file with 15 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
* TODO: At least one step could be optimized, currently the plugin will do two scans of all the
* source code if the compiler has to have the entire set of sources. This is currently the case for
* at least the C# compiler and most likely all the other .NET compilers too.
*
*
* @author others
* @author <a href="mailto:[email protected]">Trygve Laugst&oslash;l</a>
* @author Jan Sievers (SAP) added support for annotation processor options
Expand Down Expand Up @@ -124,9 +124,10 @@ public abstract class AbstractCompilerMojo extends AbstractMojo {

/**
* The -encoding argument for the Java compiler (kept for backwards compatibility)
*
*
* @deprecated use {@link #encoding}
*/
@Deprecated
@Parameter(property = "maven.compiler.encoding", readonly = true)
private String mavenCompilerEncoding;

Expand Down Expand Up @@ -183,13 +184,13 @@ public abstract class AbstractCompilerMojo extends AbstractMojo {
private String executable;

/**
* If <code>only</code> is specified, the annotation processors will run but no compilation will be
* performed. If <code>none</code> is specified, annotation processors will not be discovered or
* run; compilation will proceed as if no annotation processors were found. By default the
* compiler must search the classpath for annotation processors, so specifying <code>none</code> may
* speed compilation if annotation processing is not required. This parameter requires a 1.6 VM
* or above and is used only if the compliance is 1.6
*
* If <code>only</code> is specified, the annotation processors will run but no compilation will
* be performed. If <code>none</code> is specified, annotation processors will not be discovered
* or run; compilation will proceed as if no annotation processors were found. By default the
* compiler must search the classpath for annotation processors, so specifying <code>none</code>
* may speed compilation if annotation processing is not required. This parameter requires a 1.6
* VM or above and is used only if the compliance is 1.6
*
* @since 0.16.0
*/
@Parameter
Expand All @@ -200,7 +201,7 @@ public abstract class AbstractCompilerMojo extends AbstractMojo {
* <a href="https://java.sun.com/javase/6/docs/api/javax/annotation/processing/Processor.html" >
* normal processor discovery process</a> will be skipped. This parameter requires a 1.6 VM or
* above and is used only if the compliance is 1.6
*
*
* @since 0.16.0
*/
@Parameter
Expand All @@ -209,7 +210,7 @@ public abstract class AbstractCompilerMojo extends AbstractMojo {
/**
* The directory where source files generated by annotation processors will be created. This
* parameter requires a 1.6 VM or above and is used only if the compliance is 1.6.
*
*
* @since 0.16.0
*/
@Parameter(defaultValue = "${project.build.directory}/generated-sources/annotations")
Expand All @@ -223,15 +224,16 @@ public abstract class AbstractCompilerMojo extends AbstractMojo {
* This is because the list of valid arguments passed to a Java compiler varies based on the
* compiler version.
* </p>
*
*
* @deprecated use {@link #compilerArgs} instead.
*/
@Deprecated
@Parameter
private Map<String, String> compilerArguments;

/**
* Arguments to be passed to the compiler.
*
*
* @since 0.17.0
*/
@Parameter
Expand Down

0 comments on commit a43c011

Please sign in to comment.