Author: tilman
Date: Mon Sep  7 08:45:44 2026
New Revision: 1937957

Log:
PDFBOX-5660: fix typo, by TianHengZhuang; closes #524

Modified:
   pdfbox/branches/3.0/io/src/main/java/org/apache/pdfbox/io/IOUtils.java
   
pdfbox/branches/3.0/io/src/test/java/org/apache/pdfbox/io/RandomAccessReadMemoryMappedFileTest.java
   
pdfbox/branches/3.0/xmpbox/src/test/java/org/apache/xmpbox/xml/DomXmpParserTest.java

Modified: pdfbox/branches/3.0/io/src/main/java/org/apache/pdfbox/io/IOUtils.java
==============================================================================
--- pdfbox/branches/3.0/io/src/main/java/org/apache/pdfbox/io/IOUtils.java      
Mon Sep  7 08:31:49 2026        (r1937956)
+++ pdfbox/branches/3.0/io/src/main/java/org/apache/pdfbox/io/IOUtils.java      
Mon Sep  7 08:45:44 2026        (r1937957)
@@ -427,7 +427,7 @@ public final class IOUtils
         try (Stream<Path> entries = Files.walk(path))
         {
             entries.sorted(Comparator.reverseOrder())
-                // we are using File.delete() on purpose over 
Files.deleteIfExists() which would be prefered in general, 
+                // we are using File.delete() on purpose over 
Files.deleteIfExists() which would be preferred in general, 
                 // as it's throwing a checked exception. As we are doing that 
in a shutdown hook there is not much we can
                 // do about it and a logger might no longer be available.
                 .forEach(p -> p.toFile().delete());

Modified: 
pdfbox/branches/3.0/io/src/test/java/org/apache/pdfbox/io/RandomAccessReadMemoryMappedFileTest.java
==============================================================================
--- 
pdfbox/branches/3.0/io/src/test/java/org/apache/pdfbox/io/RandomAccessReadMemoryMappedFileTest.java
 Mon Sep  7 08:31:49 2026        (r1937956)
+++ 
pdfbox/branches/3.0/io/src/test/java/org/apache/pdfbox/io/RandomAccessReadMemoryMappedFileTest.java
 Mon Sep  7 08:45:44 2026        (r1937957)
@@ -183,7 +183,7 @@ class RandomAccessReadMemoryMappedFileTe
     @Test
     void testUnmapping() throws IOException
     {
-        // This is a special test case for some unmapping issues limited to 
windows enviroments
+        // This is a special test case for some unmapping issues limited to 
windows environments
         // see https://bugs.openjdk.java.net/browse/JDK-4724038
         Path tempFile = Files.createTempFile("PDFBOX", "txt");
         try (BufferedWriter bufferedWriter = Files.newBufferedWriter(tempFile, 
StandardOpenOption.WRITE))

Modified: 
pdfbox/branches/3.0/xmpbox/src/test/java/org/apache/xmpbox/xml/DomXmpParserTest.java
==============================================================================
--- 
pdfbox/branches/3.0/xmpbox/src/test/java/org/apache/xmpbox/xml/DomXmpParserTest.java
        Mon Sep  7 08:31:49 2026        (r1937956)
+++ 
pdfbox/branches/3.0/xmpbox/src/test/java/org/apache/xmpbox/xml/DomXmpParserTest.java
        Mon Sep  7 08:45:44 2026        (r1937957)
@@ -1500,7 +1500,7 @@ class DomXmpParserTest
         XMPMetadata xmp2 = 
xmpParser2.parse(s.getBytes(StandardCharsets.UTF_8));
         PhotoshopSchema photoshopSchema = xmp2.getPhotoshopSchema();
         assertNull(photoshopSchema.getHeadline());
-        // non existant properties are treated as text, one might want to 
change this in the future.
+        // non existent properties are treated as text, one might want to 
change this in the future.
         assertEquals("[headline=TextType:]", 
photoshopSchema.getProperty("headline").toString());
     }
 

Reply via email to