You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by "Robert Marcano (Jira)" <ji...@apache.org> on 2021/12/20 20:10:00 UTC
[jira] [Created] (XMLBEANS-582) Make XmlCursor AutoCloseable
Robert Marcano created XMLBEANS-582:
---------------------------------------
Summary: Make XmlCursor AutoCloseable
Key: XMLBEANS-582
URL: https://issues.apache.org/jira/browse/XMLBEANS-582
Project: XMLBeans
Issue Type: Improvement
Components: Cursor
Reporter: Robert Marcano
In order to help users avoid disposing instances of {{{}XmlCursor{}}}, It could be changed to be an {{AutoCloseable}} so IDE's are able to detect them not being disposed and recommend the try with resources pattern.
This will involve renaming the {{dispose()}} method to {{close()}} and creating a deprecated method named as the old one {{dispose()}} on all {{XmlCursor}} implementations.
If this is agreed to be a good change, I can prepare a patch for it.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org