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

gnodet 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 658625b  Fix wrong Toolchain message
658625b is described below

commit 658625b4b92627b45236eac007360ff1afabdbec
Author: Guillaume Nodet <[email protected]>
AuthorDate: Mon Jul 1 20:19:04 2024 +0200

    Fix wrong Toolchain message
---
 .../java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java 
b/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java
index 3a4a6b4..02922b4 100644
--- a/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java
+++ b/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java
@@ -665,7 +665,7 @@ public abstract class AbstractCompilerMojo implements Mojo {
         // use the compilerId as identifier for toolchains as well.
         Optional<Toolchain> tc = getToolchain();
         if (tc.isPresent()) {
-            getLog().info("Toolchain in maven-compiler-plugin: " + tc);
+            getLog().info("Toolchain in maven-compiler-plugin: " + tc.get());
             if (executable != null) {
                 getLog().warn("Toolchains are ignored, 'executable' parameter 
is set to " + executable);
             } else {

Reply via email to