[BUG] [RULES] False positive on "Stream#close() must be called explicitly to close the underlying resources" hibernate6-00090 #656
Labels
kind/bug
Categorizes issue or PR as related to a bug.
needs-priority
Indicates an issue or PR lacks a `priority/foo` label and requires one.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
Is there an existing issue for this?
Konveyor version
0.5 beta 1
Anything else?
Tested with Kantra b0.5 beta1
Target: eap8 (and others)
Source: none
Source code used: https://github.com/sonatype/nexus-public
Rule triggered:
hibernate6-00090
Stream#close() must be called explicitly to close the underlying resourcesReport: https://drive.google.com/file/d/1TbdLS4_728DgxbB88F7YcXw84jK2elty/view?usp=drive_link
This rule reported 8 incidents for the application, all of them were related to streams out of the hibernate package and none of them needed to be closed as they were either inline calls to
stream()
on Collections or I/O operations insidetry-with-resource blocks
The text was updated successfully, but these errors were encountered: