Remove finalize()
https://github.com/jakartaee/mail-api/issues/720
I found only few places in mail-api. Some of them are abstract and they don't have usage in mail-api, so I will need to check angus-mail.
It is probably out of the scope of this issue, but I couldn't resist to remove Objects.requireNonNull(this);. Is there any reason to have that?.
Also more of housekeeping thing but, I didn't create a clone issue in angus mail. There are finializers there too that need to be removed. I'm not sure of the workflow but I noticed that it is possible to:
- Create an issue in JakartaMail.
- Link it to a PR in JakartaMail.
- Link the JakartaMail issue to another PR in AngusMail.
- Use the JakartaMail issue number and title in the changes.txt of JakartaMail.
- Use the AngusMail PR number but the JakartaMail issue title in the changes.txt of AngusMail.
The result is one less issue ticket being created without any numbering conflicts.
Before I forget, you'll have to write up some COMPAT.txt notes for close:
- No arg close no longer hostile if closed.
- No arg close is now required to be called to signal event thread to quit.
- Obviously users must manage resources as the finalizers are removed.
Understand that this is blocked by version changes and PR is still draft so there could be more.