groovy.org.codenarc.rule.jdbc
[Groovy] Class JdbcStatementReferenceRule
java.lang.Object
org.codenarc.rule.AbstractAstVisitorRule
groovy.org.codenarc.rule.jdbc.JdbcStatementReferenceRule
class JdbcStatementReferenceRule
extends AbstractAstVisitorRule
Check for direct use of java.sql.Statement, PreparedStatement, or CallableStatement, which is not necessary if
using the Groovy Sql facility or an ORM framework such as Hibernate.
Known limitation: Does not catch references as Anonymous Inner class: def x = new java.sql.Statement() { .. }
- Authors:
- Chris Mair
name
String name
-
priority
int priority
-
getAstVisitor
@Override
AstVisitor getAstVisitor()
-
Groovy Documentation