korge
korge copied to clipboard
Convert Closeable -> AutoCloseable
trafficstars
In Kotlin 1.8, AutoCloseable was included. A first step could be making Closeable extend AutoCloseable.
And then typealiasing it.
Expending the interface is okay, typealiasing it will be a binary-breaking change, and should be done only in major version changes.
Context2d has a conflict with AutoCloseable. It inherit from VectorBuilder wich contains a close method.
The close method will be deprecated in favor of closePath on 4.1.0 and remove on 4.2.0.