| |
|
| java.lang.Object org.hammurapi.InspectorBase org.hammurapi.inspectors.SqlCreateStatementWithoutCloseRule
SqlCreateStatementWithoutCloseRule | public class SqlCreateStatementWithoutCloseRule extends InspectorBase implements Parameterizable(Code) | | Fix 5: Ignore all createStatement & preparedStatements method calls which are NOT provided by java.sql.Connection
Fix 4: handle TypeCast of parameters in "releaseSafe" helper methods
Fix 3: find multiple occurance of a "releaseSafe" helper methods
Fix 2: Count create & close statements in a method and report violation if close less than create
Fix 1: ReturnStatement added in visit(MethodCall)
|
Inner Class :class CloseVisitor implements Visitor | |
checkNumberOfCreateCloseAPI | public void checkNumberOfCreateCloseAPI()(Code) | | |
getConfigInfo | public String getConfigInfo()(Code) | | Gives back the preconfigured values.
|
leave | public void leave(Repository repo)(Code) | | |
setParameter | public boolean setParameter(String name, Object parameter) throws ConfigurationException(Code) | | Configures the rule. Reads in the values of the parameter copyright.
Parameters: name - the name of the parameter being loaded from Hammurapiconfiguration exception: ConfigurationException - in case of a not supported parameter |
visit | public void visit(CompilationUnit cu)(Code) | | |
visit | public void visit(Method methodDecl)(Code) | | |
visit | public void visit(MethodCall methodCall)(Code) | | |
|
|
|