Affects Sonarqube Version:
Sonarqube version: 18.104.22.168237
sonar-scanner version: 22.214.171.1243-windows
S1215: Execution of the Garbage Collector should be triggered only by the JVM
System.runFinalization() is similar to
Runtime.getRuntime().gc(), also should not be called explicitly. It is recommended that this rule supplement the detection of this function.
Code Sample demonstrating the issue:
Running Sonarqube through: