Refactoring: Fix sonarcube issues in JSONObject by marilynel · Pull Request #1004 · stleary/JSON-java

What problem does this code solve?
Sonarqube issue cleanup for JSONObject (in progress)

Does the code still compile with Java6?
Yes

Risks
Low

Changes to the API?
No

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?
No

Review status
APPROVED

Starting 3-day comment window