You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sj...@apache.org on 2026/10/17 20:47:15 UTC

(maven-toolchains-plugin) branch master updated: Remove unreachable toolchains null check

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 6e30fe5  Remove unreachable toolchains null check
6e30fe5 is described below

commit 6e30fe554cdcacad52245c541ef3c4fee3fe5d01
Author: Efe Gökdemir <ef...@rexcode.co.uk>
AuthorDate: Thu Sep 24 08:37:50 2026 +0300

    Remove unreachable toolchains null check
---
 src/main/java/org/apache/maven/plugins/toolchain/ToolchainMojo.java | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/src/main/java/org/apache/maven/plugins/toolchain/ToolchainMojo.java b/src/main/java/org/apache/maven/plugins/toolchain/ToolchainMojo.java
index 8d05838..a3ba458 100644
--- a/src/main/java/org/apache/maven/plugins/toolchain/ToolchainMojo.java
+++ b/src/main/java/org/apache/maven/plugins/toolchain/ToolchainMojo.java
@@ -74,12 +74,6 @@ public class ToolchainMojo extends AbstractMojo {
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
-        if (toolchains == null) {
-            // should not happen since parameter is required...
-            getLog().warn("No toolchains requirements configured.");
-            return;
-        }
-
         List<String> nonMatchedTypes = new ArrayList<>();
 
         for (Map.Entry<String, Map<String, String>> entry :