5

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?

Tunaki
  • 132,869
  • 46
  • 340
  • 423

1 Answers1

7

I found the answer. This is a known bug:

https://jira.sonarsource.com/browse/SONARJAVA-1478

Tunaki
  • 132,869
  • 46
  • 340
  • 423