Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion io/src/main/java/org/apache/pdfbox/io/IOUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ private static void deletePathRecursively(Path path) {
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());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ void testEmptyBuffer() throws IOException, URISyntaxException
@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))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1496,7 +1496,7 @@ void testWrongType() throws XmpParsingException
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());
}

Expand Down