Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SonarQube and squidS2095 with Java 8 [duplicate]

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?

like image 234
Łukasz Woźniak Avatar asked Mar 24 '16 09:03

Łukasz Woźniak


1 Answers

I found the answer. This is a known bug:

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

like image 137
Łukasz Woźniak Avatar answered Oct 26 '22 13:10

Łukasz Woźniak