Addressed Java 17 compile warnings by javadev · Pull Request #769 · stleary/JSON-java

What problem does this code solve?
Fixes unit test compiler warnings when building with Java 17 (the pipeline does this)

Risks
Low - this only affects the unit tests

Changes to the API?
N/A

Will this require a new release?
No

Should the documentation be updated?
No

Does it break the unit tests?
No

Was any code refactored in this commit?
N/A

Review status
APPROVED

Starting 3-day comment window