As commented by @Euklios the java LTS are 8, 11, 17, 21, with "Java 8 was so popular that it won't die.", but many companies moving to active projects to java 17 or 21.
So I think we should plan for moving to the latest java (at some point) and at the same time, make appropriate changes to the API to modernise it. A quick shortlist (again by @Euklios):
- Java has made a lot of progress towards immutable data
- Add getters and mark public properties as deprecated
- Release
- Make properties private
- Switch Java version