Skip to content

Commit 23388ef

Browse files
committed
PDFBOX-5660: improve javadoc, as suggested by Valery Bokov; closes #319
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1929613 13f79535-47bb-0310-9956-ffa450edef68
1 parent 3b10cf4 commit 23388ef

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

io/src/main/java/org/apache/pdfbox/io/IOUtils.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,13 @@ public static IOException closeAndLogException(Closeable closeable, Logger logge
167167
}
168168

169169
/**
170-
* Unmap memory mapped byte buffers. This is a hack waiting for a proper JVM provided solution expected in java 10
171-
* https://bugs.openjdk.java.net/browse/JDK-4724038 The issue here is that even when closed, memory mapped byte
172-
* buffers hold a lock on the underlying file until GC is executes and this in turns result in an error if the user
173-
* tries to move or delete the file.
174-
*
170+
* Unmap memory mapped byte buffers. This is a hack waiting for a proper JVM provided solution
171+
* mentioned in
172+
* <a href="https://bugs.openjdk.java.net/browse/JDK-4724038">JDK-4724038: Add unmap method to
173+
* MappedByteBuffer</a>. The issue here is that even when closed, memory mapped byte buffers
174+
* hold a lock on the underlying file until GC is executing and this in turns result in an error
175+
* if the user tries to move or delete the file.
176+
*
175177
* @param buf the buffer to be unmapped
176178
*/
177179
public static void unmap(ByteBuffer buf)

0 commit comments

Comments
 (0)