I have a problem with SonarQube. Code below
StreamSupport.stream(var, false).mapToInt().collect(..);
does not comply with the rule
squid: S2095 Resources must be closed
What can I do to tell SonarQube not to scan functions from Java 8 to this rule?
source share