You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Stephan Wienczny (JIRA)" <ji...@apache.org> on 2013/05/02 00:50:16 UTC
[jira] [Created] (PDFBOX-1591) Resources should implement
java.io.closeable
Stephan Wienczny created PDFBOX-1591:
----------------------------------------
Summary: Resources should implement java.io.closeable
Key: PDFBOX-1591
URL: https://issues.apache.org/jira/browse/PDFBOX-1591
Project: PDFBox
Issue Type: Improvement
Reporter: Stephan Wienczny
Priority: Trivial
All resources shoud implement the java.io.closable interface (http://docs.oracle.com/javase/7/docs/api/java/io/Closeable.html) which is available since Java 1.5.
I found this when looking at org.apache.pdfbox.pdmodel.PDDocument the close method already has the same signature is should have. Just the interface is missing.
One the interface is implemented you can use the new try-with-resource added to Java 1.7.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira