Whenever I create a method that returns a SelectJoinStep, I always get a Sonar issue. Is the sonar report correct?
When I use the select directly I don't get a sonar error report.
protected SelectJoinStep<Record> createSelect() {
return getDslContext().select( selectFields ).from( getTable() );
}
"Use try-with-resources or close this "SelectJoinStep" in a "finally" clause. Resources should be closedjava:S2095"
Is it recommended to close the step?