[ https://issues.apache.org/jira/browse/XMLBEANS-582?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
PJ Fanning resolved XMLBEANS-582. --------------------------------- Resolution: Fixed > 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 > > Time Spent: 10m > Remaining Estimate: 0h > > 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-unsubscr...@poi.apache.org For additional commands, e-mail: dev-h...@poi.apache.org