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

slachiewicz pushed a commit to branch maven-clean-plugin-4.x
in repository https://gitbox.apache.org/repos/asf/maven-clean-plugin.git

commit a6fd9245ba6195d43dd182877485d552d5ee5deb
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Tue Nov 17 03:08:36 2026 +0000

    Use Java 17 pattern matching and String.formatted
---
 src/test/java/org/apache/maven/plugins/clean/CleanMojoTest.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/test/java/org/apache/maven/plugins/clean/CleanMojoTest.java 
b/src/test/java/org/apache/maven/plugins/clean/CleanMojoTest.java
index 65ceddf..b05568a 100644
--- a/src/test/java/org/apache/maven/plugins/clean/CleanMojoTest.java
+++ b/src/test/java/org/apache/maven/plugins/clean/CleanMojoTest.java
@@ -26,7 +26,6 @@ import java.nio.channels.FileChannel;
 import java.nio.channels.FileLock;
 import java.nio.file.Files;
 import java.nio.file.Path;
-import java.nio.file.Paths;
 import java.util.Collections;
 
 import org.apache.maven.api.plugin.Log;
@@ -256,7 +255,7 @@ class CleanMojoTest {
 
     private void testSymlink(LinkCreator linkCreator) throws Exception {
         Cleaner cleaner = new Cleaner(matcherFactory, log, false, false, 
false, true, false);
-        Path testDir = 
Paths.get("target/test-classes/unit/test-dir").toAbsolutePath();
+        Path testDir = 
Path.of("target/test-classes/unit/test-dir").toAbsolutePath();
         Path dirWithLnk = testDir.resolve("dir");
         Path orgDir = testDir.resolve("org-dir");
         Path jctDir = dirWithLnk.resolve("jct-dir");

Reply via email to