Author: fanningpj
Date: Wed Jul 15 22:22:47 2026
New Revision: 1936177

Log:
revert

Modified:
   xmlbeans/trunk/src/test/java/org/apache/xmlbeans/impl/tool/Diff.java

Modified: xmlbeans/trunk/src/test/java/org/apache/xmlbeans/impl/tool/Diff.java
==============================================================================
--- xmlbeans/trunk/src/test/java/org/apache/xmlbeans/impl/tool/Diff.java        
Wed Jul 15 21:50:07 2026        (r1936176)
+++ xmlbeans/trunk/src/test/java/org/apache/xmlbeans/impl/tool/Diff.java        
Wed Jul 15 22:22:47 2026        (r1936177)
@@ -21,7 +21,6 @@ import org.apache.xmlbeans.impl.schema.S
 
 import java.io.*;
 import java.nio.charset.StandardCharsets;
-import java.nio.file.Files;
 import java.util.*;
 import java.util.jar.JarEntry;
 import java.util.jar.JarFile;
@@ -252,8 +251,8 @@ public class Diff {
     public static void filesAsXsb(File file1, File file2, List<XmlError> 
diffs) {
         assert file1.exists() : "File \"" + file1.getAbsolutePath() + "\" does 
not exist.";
         assert file2.exists() : "File \"" + file2.getAbsolutePath() + "\" does 
not exist.";
-        try (InputStream stream1 = Files.newInputStream(file1.toPath());
-             InputStream stream2 = Files.newInputStream(file2.toPath())) {
+        try (InputStream stream1 = new FileInputStream(file1);
+             InputStream stream2 = new FileInputStream(file2)) {
             streamsAsXsb(stream1, file1.getName(), stream2, file2.getName(), 
diffs);
         } catch (IOException ignored) {
         }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to