PMD Results
The following document contains the results of PMD 7.17.0.
Violations By Priority
Priority 3
org/apache/ibatis/builder/MapperBuilderAssistant.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 444–446 |
org/apache/ibatis/builder/annotation/MapperAnnotationBuilder.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 174–176 |
| EmptyCatchBlock | Avoid empty catch blocks | 705–707 |
org/apache/ibatis/builder/xml/XMLMapperBuilder.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 214–216 |
| EmptyCatchBlock | Avoid empty catch blocks | 407–409 |
org/apache/ibatis/builder/xml/XMLMapperEntityResolver.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 82–84 |
org/apache/ibatis/cache/decorators/LruCache.java
| Rule | Violation | Line |
|---|---|---|
| UselessPureMethodCall | Do not call pure method get if the result is not used. | 72 |
org/apache/ibatis/cursor/defaults/DefaultCursor.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 117–119 |
org/apache/ibatis/datasource/pooled/PooledDataSource.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 357–359 |
| EmptyCatchBlock | Avoid empty catch blocks | 371–373 |
| EmptyCatchBlock | Avoid empty catch blocks | 593–595 |
org/apache/ibatis/executor/BaseExecutor.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 298–300 |
org/apache/ibatis/executor/keygen/Jdbc3KeyGenerator.java
| Rule | Violation | Line |
|---|---|---|
| EmptyControlStatement | Empty if statement | 87–91 |
| EmptyControlStatement | Empty if statement | 276–281 |
org/apache/ibatis/executor/loader/cglib/CglibProxyFactory.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 91–93 |
org/apache/ibatis/executor/loader/javassist/JavassistProxyFactory.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 87–89 |
org/apache/ibatis/executor/resultset/DefaultResultSetHandler.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 312–314 |
| EmptyCatchBlock | Avoid empty catch blocks | 323–325 |
| UnusedFormalParameter | Avoid unused method parameters such as 'parameterType'. | 1061 |
org/apache/ibatis/executor/resultset/ResultSetWrapper.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 129–131 |
org/apache/ibatis/executor/statement/BaseStatementHandler.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 135–137 |
org/apache/ibatis/io/ClassLoaderWrapper.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 218–220 |
org/apache/ibatis/io/DefaultVFS.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 167–169 |
| EmptyCatchBlock | Avoid empty catch blocks | 348–350 |
org/apache/ibatis/jdbc/ScriptRunner.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 172–174 |
| EmptyCatchBlock | Avoid empty catch blocks | 202–204 |
org/apache/ibatis/jdbc/SqlRunner.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 134–136 |
| EmptyCatchBlock | Avoid empty catch blocks | 146–148 |
| EmptyCatchBlock | Avoid empty catch blocks | 211–213 |
org/apache/ibatis/logging/LogFactory.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 100–102 |
org/apache/ibatis/logging/jdbc/BaseJdbcLogger.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 104–106 |
org/apache/ibatis/logging/slf4j/Slf4jImpl.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 42–44 |
org/apache/ibatis/mapping/ParameterMapping.java
| Rule | Violation | Line |
|---|---|---|
| UnusedPrivateField | Avoid unused private fields such as 'configuration'. | 30 |
org/apache/ibatis/reflection/Jdk.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 38–40 |
| EmptyCatchBlock | Avoid empty catch blocks | 55–57 |
| EmptyCatchBlock | Avoid empty catch blocks | 72–74 |
org/apache/ibatis/reflection/ParamNameResolver.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 194–196 |
org/apache/ibatis/reflection/Reflector.java
| Rule | Violation | Line |
|---|---|---|
| EmptyControlStatement | Empty if statement | 135–142 |
org/apache/ibatis/reflection/property/PropertyCopier.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 46–48 |
org/apache/ibatis/scripting/defaults/DefaultParameterHandler.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 146–148 |
org/apache/ibatis/session/SqlSessionFactoryBuilder.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 59–61 |
| EmptyCatchBlock | Avoid empty catch blocks | 89–91 |
org/apache/ibatis/session/defaults/DefaultSqlSessionFactory.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 144–146 |
Priority 4
org/apache/ibatis/builder/SqlSourceBuilder.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'SqlSourceBuilder': 'removeExtraWhitespaces' is already in scope | 37 |
org/apache/ibatis/io/JBoss6VFS.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'JBoss6VFS': 'valid' is already in scope because it is declared in an enclosing type | 156 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'JBoss6VFS': 'valid' is already in scope because it is declared in an enclosing type | 158 |
org/apache/ibatis/reflection/MetaClass.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'MetaClass': 'forClass' is already in scope | 46 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'MetaClass': 'forClass' is already in scope | 107 |
org/apache/ibatis/reflection/MetaObject.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'MetaObject': 'forObject' is already in scope | 134 |
org/apache/ibatis/type/JdbcType.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'JdbcType': 'values' is already in scope | 115 |
org/apache/ibatis/type/TypeHandlerRegistry.java
| Rule | Violation | Line |
|---|---|---|
| UselessParentheses | Useless parentheses around `v == null || v == NULL_TYPE_HANDLER_MAP ? new H...`. | 414 |
| UselessParentheses | Useless parentheses around `v == null || v == NULL_TYPE_HANDLER_MAP ? new H...`. | 425 |
Files
org/apache/ibatis/builder/MapperBuilderAssistant.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 444–446 |
org/apache/ibatis/builder/SqlSourceBuilder.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'SqlSourceBuilder': 'removeExtraWhitespaces' is already in scope | 4 | 37 |
org/apache/ibatis/builder/annotation/MapperAnnotationBuilder.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 174–176 |
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 705–707 |
org/apache/ibatis/builder/xml/XMLMapperBuilder.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 214–216 |
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 407–409 |
org/apache/ibatis/builder/xml/XMLMapperEntityResolver.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 82–84 |
org/apache/ibatis/cache/decorators/LruCache.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UselessPureMethodCall | Do not call pure method get if the result is not used. | 3 | 72 |
org/apache/ibatis/cursor/defaults/DefaultCursor.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 117–119 |
org/apache/ibatis/datasource/pooled/PooledDataSource.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 357–359 |
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 371–373 |
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 593–595 |
org/apache/ibatis/executor/BaseExecutor.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 298–300 |
org/apache/ibatis/executor/keygen/Jdbc3KeyGenerator.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyControlStatement | Empty if statement | 3 | 87–91 |
| EmptyControlStatement | Empty if statement | 3 | 276–281 |
org/apache/ibatis/executor/loader/cglib/CglibProxyFactory.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 91–93 |
org/apache/ibatis/executor/loader/javassist/JavassistProxyFactory.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 87–89 |
org/apache/ibatis/executor/resultset/DefaultResultSetHandler.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 312–314 |
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 323–325 |
| UnusedFormalParameter | Avoid unused method parameters such as 'parameterType'. | 3 | 1061 |
org/apache/ibatis/executor/resultset/ResultSetWrapper.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 129–131 |
org/apache/ibatis/executor/statement/BaseStatementHandler.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 135–137 |
org/apache/ibatis/io/ClassLoaderWrapper.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 218–220 |
org/apache/ibatis/io/DefaultVFS.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 167–169 |
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 348–350 |
org/apache/ibatis/io/JBoss6VFS.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'JBoss6VFS': 'valid' is already in scope because it is declared in an enclosing type | 4 | 156 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'JBoss6VFS': 'valid' is already in scope because it is declared in an enclosing type | 4 | 158 |
org/apache/ibatis/jdbc/ScriptRunner.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 172–174 |
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 202–204 |
org/apache/ibatis/jdbc/SqlRunner.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 134–136 |
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 146–148 |
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 211–213 |
org/apache/ibatis/logging/LogFactory.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 100–102 |
org/apache/ibatis/logging/jdbc/BaseJdbcLogger.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 104–106 |
org/apache/ibatis/logging/slf4j/Slf4jImpl.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 42–44 |
org/apache/ibatis/mapping/ParameterMapping.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnusedPrivateField | Avoid unused private fields such as 'configuration'. | 3 | 30 |
org/apache/ibatis/reflection/Jdk.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 38–40 |
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 55–57 |
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 72–74 |
org/apache/ibatis/reflection/MetaClass.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'MetaClass': 'forClass' is already in scope | 4 | 46 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'MetaClass': 'forClass' is already in scope | 4 | 107 |
org/apache/ibatis/reflection/MetaObject.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'MetaObject': 'forObject' is already in scope | 4 | 134 |
org/apache/ibatis/reflection/ParamNameResolver.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 194–196 |
org/apache/ibatis/reflection/Reflector.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyControlStatement | Empty if statement | 3 | 135–142 |
org/apache/ibatis/reflection/property/PropertyCopier.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 46–48 |
org/apache/ibatis/scripting/defaults/DefaultParameterHandler.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 146–148 |
org/apache/ibatis/session/SqlSessionFactoryBuilder.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 59–61 |
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 89–91 |
org/apache/ibatis/session/defaults/DefaultSqlSessionFactory.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 144–146 |
org/apache/ibatis/type/JdbcType.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'JdbcType': 'values' is already in scope | 4 | 115 |
org/apache/ibatis/type/TypeHandlerRegistry.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UselessParentheses | Useless parentheses around `v == null || v == NULL_TYPE_HANDLER_MAP ? new H...`. | 4 | 414 |
| UselessParentheses | Useless parentheses around `v == null || v == NULL_TYPE_HANDLER_MAP ? new H...`. | 4 | 425 |
MyBatis