Skip to content

Commit daaf8f9

Browse files
gnodetclaude
andcommitted
Fix spotless formatting in PluginUpgradeStrategyTest
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 690846c commit daaf8f9

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/PluginUpgradeStrategyTest.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -847,12 +847,10 @@ void shouldNotAddDirectOverrideWhenVersionFromPluginManagement() throws Exceptio
847847
Element pmPlugins =
848848
root.path("build", "pluginManagement", "plugins").orElse(null);
849849
assertNotNull(pmPlugins, "Should have pluginManagement/plugins");
850-
boolean hasEnforcerInPM = pmPlugins
851-
.childElements("plugin")
852-
.anyMatch(p -> "maven-enforcer-plugin"
853-
.equals(p.childElement("artifactId")
854-
.map(Element::textContentTrimmed)
855-
.orElse("")));
850+
boolean hasEnforcerInPM = pmPlugins.childElements("plugin").anyMatch(p -> "maven-enforcer-plugin"
851+
.equals(p.childElement("artifactId")
852+
.map(Element::textContentTrimmed)
853+
.orElse("")));
856854
assertTrue(hasEnforcerInPM, "Should have enforcer in pluginManagement");
857855

858856
// Verify NO direct build/plugins entry for enforcer (PM override is sufficient)

0 commit comments

Comments
 (0)