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

gnodet pushed a commit to branch maven-4.0.x-test-fixes
in repository https://gitbox.apache.org/repos/asf/maven.git


The following commit(s) were added to refs/heads/maven-4.0.x-test-fixes by this 
push:
     new daaf8f933c Fix spotless formatting in PluginUpgradeStrategyTest
daaf8f933c is described below

commit daaf8f933ccb2f59274cdb74fb2ae12f60cb0402
Author: Guillaume Nodet <[email protected]>
AuthorDate: Wed May 27 11:41:25 2026 +0200

    Fix spotless formatting in PluginUpgradeStrategyTest
    
    Co-Authored-By: Claude Opus 4.6 <[email protected]>
---
 .../cling/invoker/mvnup/goals/PluginUpgradeStrategyTest.java   | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git 
a/impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/PluginUpgradeStrategyTest.java
 
b/impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/PluginUpgradeStrategyTest.java
index 602158a17c..17dc1859db 100644
--- 
a/impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/PluginUpgradeStrategyTest.java
+++ 
b/impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/PluginUpgradeStrategyTest.java
@@ -847,12 +847,10 @@ void 
shouldNotAddDirectOverrideWhenVersionFromPluginManagement() throws Exceptio
             Element pmPlugins =
                     root.path("build", "pluginManagement", 
"plugins").orElse(null);
             assertNotNull(pmPlugins, "Should have pluginManagement/plugins");
-            boolean hasEnforcerInPM = pmPlugins
-                    .childElements("plugin")
-                    .anyMatch(p -> "maven-enforcer-plugin"
-                            .equals(p.childElement("artifactId")
-                                    .map(Element::textContentTrimmed)
-                                    .orElse("")));
+            boolean hasEnforcerInPM = 
pmPlugins.childElements("plugin").anyMatch(p -> "maven-enforcer-plugin"
+                    .equals(p.childElement("artifactId")
+                            .map(Element::textContentTrimmed)
+                            .orElse("")));
             assertTrue(hasEnforcerInPM, "Should have enforcer in 
pluginManagement");
 
             // Verify NO direct build/plugins entry for enforcer (PM override 
is sufficient)

Reply via email to