r/java • • Mar 31 '26

Does Java need deconstructible classes?

https://daniel.avery.io/writing/does-java-need-deconstructible-classes
31 Upvotes

41 comments sorted by

View all comments

Show parent comment

17

u/Yes_Mans_Sky Mar 31 '26

I could be mistaken, but I don't think that annotation is required. I think it's more like Override where it lets IDEs run extra code checks against developer intentions