You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by "PJ Fanning (Jira)" <ji...@apache.org> on 2022/01/06 14:41:00 UTC

[jira] [Commented] (XMLBEANS-582) Make XmlCursor AutoCloseable

    [ https://issues.apache.org/jira/browse/XMLBEANS-582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17469945#comment-17469945 ] 

PJ Fanning commented on XMLBEANS-582:
-------------------------------------

[https://github.com/apache/xmlbeans/pull/4] has been opened

> 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
>            Priority: Minor
>             Fix For: Version 5.1.0
>
>
> In order to help users forgetting to dispose 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