I have a problem with SonarQube. The code below
StreamSupport.stream(var, false).mapToInt().collect(..);
does not comply with the rule
squid: S2095 Resources should be closed
What can I do to tell SonarQube to not scan features from Java 8 to that rule?
I found the answer. This is a known bug:
https://jira.sonarsource.com/browse/SONARJAVA-1478
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With