java:S1874: Working as intended?

Hey David.

Sorry for the late reply here.

Rules like S1874 rely on knowing the project’s specific JDK, rather than a list of deprecated methods.

You can adjust what flavor of Java is “fed” to the scanner by adjusting sonar.java.jdkHome, meanwhile using whatever supported flavor of Java you want to run the scan.