You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by rf...@apache.org on 2021/05/15 09:22:01 UTC

[maven-compiler-plugin] branch master updated: Remove unused private field

This is an automated email from the ASF dual-hosted git repository.

rfscholte pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-compiler-plugin.git


The following commit(s) were added to refs/heads/master by this push:
     new 419bf04  Remove unused private field
419bf04 is described below

commit 419bf040893dac8f300deb5b36daf5f487dea8d2
Author: Piotrek Żygieło <pz...@users.noreply.github.com>
AuthorDate: Sat May 15 11:21:48 2021 +0200

    Remove unused private field
    
    Signed-off-by: rfscholte <rf...@apache.org>
---
 src/main/java/org/apache/maven/plugin/compiler/TestCompilerMojo.java   | 3 ---
 .../java/org/apache/maven/plugin/compiler/CompilerMojoTestCase.java    | 1 -
 2 files changed, 4 deletions(-)

diff --git a/src/main/java/org/apache/maven/plugin/compiler/TestCompilerMojo.java b/src/main/java/org/apache/maven/plugin/compiler/TestCompilerMojo.java
index f6c1d5b..9430ac2 100644
--- a/src/main/java/org/apache/maven/plugin/compiler/TestCompilerMojo.java
+++ b/src/main/java/org/apache/maven/plugin/compiler/TestCompilerMojo.java
@@ -153,9 +153,6 @@ public class TestCompilerMojo
     @Parameter ( defaultValue = "${project.build.directory}/generated-test-sources/test-annotations" )
     private File generatedTestSourcesDirectory;
 
-    @Parameter( defaultValue = "${project.compileClasspathElements}", readonly = true )
-    private List<String> compilePath;
-
     @Parameter( defaultValue = "${project.testClasspathElements}", readonly = true )
     private List<String> testPath;
 
diff --git a/src/test/java/org/apache/maven/plugin/compiler/CompilerMojoTestCase.java b/src/test/java/org/apache/maven/plugin/compiler/CompilerMojoTestCase.java
index b1282d5..79d8711 100644
--- a/src/test/java/org/apache/maven/plugin/compiler/CompilerMojoTestCase.java
+++ b/src/test/java/org/apache/maven/plugin/compiler/CompilerMojoTestCase.java
@@ -448,7 +448,6 @@ public class CompilerMojoTestCase
         project.setArtifacts( Collections.singleton( junitArtifact )  );
         project.getBuild().setOutputDirectory( new File( buildDir, "classes" ).getAbsolutePath() );
         setVariableValueToObject( mojo, "project", project );
-        setVariableValueToObject( mojo, "compilePath", Collections.EMPTY_LIST );
         setVariableValueToObject( mojo, "testPath", testClasspathList );
         setVariableValueToObject( mojo, "session", getMockMavenSession() );
         setVariableValueToObject( mojo, "mojoExecution", getMockMojoExecution() );