You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OBL_UNSATISFIED_OBLIGATION is raised for a java.sql.ResultSet obtained from a PreparedStatement that is properly enclosed in a try-with-resource.
However, the ResultSet documentation explicitly states this pattern is safe as all ResultSets obtained from a PreparedStetement are closed when the PreparedStatement is closed: https://docs.oracle.com/javase/7/docs/api/java/sql/ResultSet.html
"A ResultSet object is automatically closed when the Statement object that generated it is closed, re-executed, or used to retrieve the next result from a sequence of multiple results."
See the attached sample, where findbugs report for line 13:
Rank: Of Concern (20), confidence: Normal
Pattern: OBL_UNSATISFIED_OBLIGATION
Type: OBL, Category: EXPERIMENTAL (Experimental) ResultSetRelease.java.txt
The text was updated successfully, but these errors were encountered:
OBL_UNSATISFIED_OBLIGATION is raised for a java.sql.ResultSet obtained from a PreparedStatement that is properly enclosed in a try-with-resource.
However, the ResultSet documentation explicitly states this pattern is safe as all ResultSets obtained from a PreparedStetement are closed when the PreparedStatement is closed:
https://docs.oracle.com/javase/7/docs/api/java/sql/ResultSet.html
"A ResultSet object is automatically closed when the Statement object that generated it is closed, re-executed, or used to retrieve the next result from a sequence of multiple results."
See the attached sample, where findbugs report for line 13:
Rank: Of Concern (20), confidence: Normal
Pattern: OBL_UNSATISFIED_OBLIGATION
Type: OBL, Category: EXPERIMENTAL (Experimental)
ResultSetRelease.java.txt
The text was updated successfully, but these errors were encountered: