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

slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-doxia-sitetools.git


The following commit(s) were added to refs/heads/master by this push:
     new 766599c  Replace plexus-utils StringUtils and FileUtils calls with the 
JDK
766599c is described below

commit 766599c91d1b2f2de308fbf51a21eaf158e80cca
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Wed Nov 18 01:49:37 2026 +0000

    Replace plexus-utils StringUtils and FileUtils calls with the JDK
---
 .../org/apache/maven/doxia/siterenderer/CommentsVerifier.java     | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/CommentsVerifier.java
 
b/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/CommentsVerifier.java
index 8e29126..486c386 100644
--- 
a/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/CommentsVerifier.java
+++ 
b/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/CommentsVerifier.java
@@ -18,9 +18,9 @@
  */
 package org.apache.maven.doxia.siterenderer;
 
-import java.io.File;
-
-import org.codehaus.plexus.util.FileUtils;
+import java.nio.charset.StandardCharsets;
+import java.nio.file.Files;
+import java.nio.file.Paths;
 
 import static org.junit.jupiter.api.Assertions.assertTrue;
 
@@ -31,7 +31,7 @@ public class CommentsVerifier extends AbstractVerifier {
     /** {@inheritDoc} */
     @Override
     public void verify(String file) throws Exception {
-        String content = FileUtils.fileRead(new File(file), "UTF-8");
+        String content = new String(Files.readAllBytes(Paths.get(file)), 
StandardCharsets.UTF_8);
 
         assertTrue(
                 content.indexOf("DOXIASITETOOLS-146") < 0,

Reply via email to