lehmi commented on code in PR #287:
URL: https://github.com/apache/pdfbox/pull/287#discussion_r2423043753


##########
io/src/main/java/org/apache/pdfbox/io/RandomAccessReadMemoryMappedFile.java:
##########
@@ -110,6 +110,7 @@ public void close() throws IOException
         if (fileChannel != null)
         {
             fileChannel.close();
+            fileChannel = null;

Review Comment:
   This isn't needed. The garbage collector takes care of final members once 
the class itself is no longer referenced



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to