Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
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.