PMD Results

The following document contains the results of PMD 4.3.

Files

org/apache/ibatis/builder/MapperBuilderAssistant.java

ViolationLine
Avoid empty catch blocks464 - 466

org/apache/ibatis/builder/SqlSourceBuilder.java

ViolationLine
Avoid empty if statements108 - 110

org/apache/ibatis/builder/annotation/MapperAnnotationBuilder.java

ViolationLine
Avoid empty catch blocks138 - 140
Avoid empty catch blocks154 - 156

org/apache/ibatis/builder/annotation/ProviderSqlSource.java

ViolationLine
These nested if statements could be combined43 - 47

org/apache/ibatis/builder/xml/XMLMapperBuilder.java

ViolationLine
Avoid empty catch blocks147 - 149
Avoid empty catch blocks162 - 164
Avoid empty catch blocks177 - 179
Avoid empty catch blocks241 - 243
These nested if statements could be combined378 - 381
Avoid empty catch blocks392 - 394
These nested if statements could be combined396 - 402

org/apache/ibatis/builder/xml/XMLMapperEntityResolver.java

ViolationLine
Avoid empty catch blocks99 - 101

org/apache/ibatis/datasource/pooled/PooledDataSource.java

ViolationLine
Avoid empty catch blocks284 - 286
Avoid empty catch blocks298 - 300
These nested if statements could be combined476 - 507
These nested if statements could be combined477 - 506
Always check the return of one of the navigation method (next,previous,first,last) of a ResultSet.484
Avoid empty catch blocks498 - 500

org/apache/ibatis/executor/BaseExecutor.java

ViolationLine
Avoid empty catch blocks232 - 234

org/apache/ibatis/executor/CachingExecutor.java

ViolationLine
Avoid unused method parameters such as 'parameter'.129 - 137

org/apache/ibatis/executor/keygen/Jdbc3KeyGenerator.java

ViolationLine
Avoid empty catch blocks68 - 70

org/apache/ibatis/executor/loader/cglib/CglibProxyFactory.java

ViolationLine
Avoid empty catch blocks78 - 80

org/apache/ibatis/executor/loader/javassist/JavassistProxyFactory.java

ViolationLine
Avoid empty catch blocks78 - 80

org/apache/ibatis/executor/resultset/DefaultResultSetHandler.java

ViolationLine
These nested if statements could be combined195 - 198
Avoid empty catch blocks200 - 202
Avoid empty catch blocks211 - 213
Avoid unused method parameters such as 'rowKey'.327 - 342

org/apache/ibatis/executor/statement/BaseStatementHandler.java

ViolationLine
Avoid empty catch blocks119 - 121

org/apache/ibatis/io/ClassLoaderWrapper.java

ViolationLine
Avoid empty catch blocks32 - 34
Avoid empty catch blocks180 - 182

org/apache/ibatis/io/DefaultVFS.java

ViolationLine
Avoid empty catch blocks146 - 147
Avoid empty catch blocks205 - 207
Avoid empty catch blocks294 - 296
Avoid empty catch blocks299 - 300

org/apache/ibatis/io/ExternalResources.java

ViolationLine
Avoid empty catch blocks55 - 57

org/apache/ibatis/jdbc/ScriptRunner.java

ViolationLine
Avoid empty catch blocks143 - 145
Avoid empty catch blocks173 - 175
Avoid empty catch blocks230 - 232

org/apache/ibatis/jdbc/SqlRunner.java

ViolationLine
Always check the return of one of the navigation method (next,previous,first,last) of a ResultSet.80
Avoid empty catch blocks85 - 87
Avoid empty catch blocks120 - 122
Avoid empty catch blocks131 - 133
Avoid empty catch blocks153 - 155
Avoid empty catch blocks185 - 187
Avoid empty catch blocks194 - 196
Avoid empty catch blocks248 - 250

org/apache/ibatis/logging/LogFactory.java

ViolationLine
Avoid empty catch blocks114 - 116

org/apache/ibatis/logging/nologging/NoLoggingImpl.java

ViolationLine
Avoid unused constructor parameters such as 'clazz'.22 - 23

org/apache/ibatis/logging/slf4j/Slf4jImpl.java

ViolationLine
Avoid empty catch blocks37 - 39
Avoid empty catch blocks39 - 41

org/apache/ibatis/logging/stdout/StdOutImpl.java

ViolationLine
Avoid unused constructor parameters such as 'clazz'.22 - 23

org/apache/ibatis/mapping/Discriminator.java

ViolationLine
Avoid unused constructor parameters such as 'configuration'.34 - 37

org/apache/ibatis/mapping/ParameterMap.java

ViolationLine
Avoid unused constructor parameters such as 'configuration'.35 - 39

org/apache/ibatis/mapping/ResultMap.java

ViolationLine
Avoid unused constructor parameters such as 'configuration'.50 - 55

org/apache/ibatis/mapping/VendorDatabaseIdProvider.java

ViolationLine
Avoid empty catch blocks83 - 85

org/apache/ibatis/metadata/DatabaseFactory.java

ViolationLine
Avoid empty catch blocks71

org/apache/ibatis/reflection/MetaClass.java

ViolationLine
Avoid empty catch blocks132 - 133
Avoid empty catch blocks133 - 134

org/apache/ibatis/reflection/Reflector.java

ViolationLine
Avoid empty catch blocks82 - 84
These nested if statements could be combined104 - 107
Avoid empty if statements130 - 132
These nested if statements could be combined159 - 162
Avoid empty catch blocks224 - 226
Avoid empty catch blocks307 - 309

org/apache/ibatis/reflection/property/PropertyCopier.java

ViolationLine
Avoid empty catch blocks30 - 32

org/apache/ibatis/reflection/wrapper/CollectionWrapper.java

ViolationLine
Avoid unused constructor parameters such as 'metaObject'.29 - 31

org/apache/ibatis/scripting/xmltags/TrimSqlNode.java

ViolationLine
An empty statement (semicolon) not part of a loop37

org/apache/ibatis/session/SqlSessionFactoryBuilder.java

ViolationLine
Avoid empty catch blocks56 - 58
Avoid empty catch blocks84 - 86

org/apache/ibatis/session/defaults/DefaultSqlSession.java

ViolationLine
Avoid unused constructor parameters such as 'autoCommit'.46 - 48

org/apache/ibatis/session/defaults/DefaultSqlSessionFactory.java

ViolationLine
Avoid empty catch blocks119 - 121

org/apache/ibatis/type/DateOnlyTypeHandler.java

ViolationLine
Avoid using java.lang.ThreadGroup; it is not thread safe29
Avoid using java.lang.ThreadGroup; it is not thread safe37
Avoid using java.lang.ThreadGroup; it is not thread safe47
Avoid using java.lang.ThreadGroup; it is not thread safe57

org/apache/ibatis/type/TypeHandlerRegistry.java

ViolationLine
Avoid empty catch blocks227 - 229
Avoid empty catch blocks321 - 323