Sonarqube detecting code smell (deprecation) of java language 9 or greater on jdk8 code

There is any way to force the java language level on the analysis?

Code Smell
Remove this use of “Integer”; it is deprecated.

@Deprecated” code should not be usedjava:S1874

Integer i = new Integer("string");

This code is not deprected on java 8.

Hi,

You’re looking for the sonar.java.source analysis parameter.

 
HTH,
Ann

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.