Closed ronreynolds closed 3 weeks ago
@zromano / @apederson94 i had originally intended this for release/4.0
but it should be safe for mainline
. happy to update it to merge into release/4.0
instead if we want to avoid any risk. also need to create a CleanerUtilTest
just to be absolutely sure the CleanerUtil
code is working as intended.
CleanerUtilTest
added and confirmed it works as intended.
@priyankalakhe unfortunately the checkstyle rules are a bit fiddly and i had to push some fresh tweaks (with no functional changes whatsoever). :-/ (and it looks like this repo is configured to reset approvals after any new push which makes total sense but is still rather inconvenient).
specific to Java-21 build (also tested with Java-11 locally):
SmartsheetImpl.finalize()
as it's deprecated and has GC impact due to requiring 2 GC passes to actually delete an object.CleanerUtil
to prevent this-capture in this code (javadocs in class explain what that means)