PMD Results

The following document contains the results of PMD 6.4.0.

Files

org/apache/ibatis/annotations/Mapper.java

Violation Priority Line
Too many static imports may lead to messy code 3 1640

org/apache/ibatis/builder/BaseBuilder.java

Violation Priority Line
Useless parentheses. 3 62

org/apache/ibatis/builder/MapperBuilderAssistant.java

Violation Priority Line
Avoid empty catch blocks 3 430432

org/apache/ibatis/builder/SqlSourceBuilder.java

Violation Priority Line
Avoid empty if statements 3 112114

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

Violation Priority Line
Avoid empty catch blocks 3 156158
Avoid empty catch blocks 3 175177

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

Violation Priority Line
Useless parentheses. 3 115

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

Violation Priority Line
Avoid empty catch blocks 3 150152
Avoid empty catch blocks 3 165167
Avoid empty catch blocks 3 180182
Avoid empty catch blocks 3 245247
These nested if statements could be combined 3 390393
Avoid empty catch blocks 3 404406
These nested if statements could be combined 3 408414

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

Violation Priority Line
Avoid empty catch blocks 3 7779

org/apache/ibatis/cursor/defaults/DefaultCursor.java

Violation Priority Line
Avoid empty catch blocks 3 117119

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

Violation Priority Line
Useless parentheses. 3 92

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

Violation Priority Line
Avoid unused imports such as 'java.sql.ResultSet' 4 23
Avoid empty catch blocks 3 315317
Avoid empty catch blocks 3 329331
These nested if statements could be combined 3 519549
These nested if statements could be combined 3 520548
Avoid empty catch blocks 3 540542

org/apache/ibatis/executor/BaseExecutor.java

Violation Priority Line
Avoid empty catch blocks 3 288290

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

Violation Priority Line
Avoid empty catch blocks 3 8486

org/apache/ibatis/executor/loader/AbstractSerialStateHolder.java

Violation Priority Line
Avoid modifiers which are implied by the context 3 112

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

Violation Priority Line
Avoid empty catch blocks 3 8688

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

Violation Priority Line
Avoid empty catch blocks 3 8688

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

Violation Priority Line
These nested if statements could be combined 3 258265
Avoid empty catch blocks 3 267269
Avoid empty catch blocks 3 278280
Useless parentheses. 3 439
Useless parentheses. 3 453
Useless parentheses. 3 525

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

Violation Priority Line
Avoid empty catch blocks 3 138140

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

Violation Priority Line
Avoid empty catch blocks 3 133135

org/apache/ibatis/io/ClassLoaderWrapper.java

Violation Priority Line
Avoid empty catch blocks 3 192194

org/apache/ibatis/io/DefaultVFS.java

Violation Priority Line
Avoid empty catch blocks 3 162164
Avoid empty catch blocks 3 233235
Avoid empty catch blocks 3 334336
Avoid empty catch blocks 3 340342

org/apache/ibatis/io/VFS.java

Violation Priority Line
These nested if statements could be combined 3 6265

org/apache/ibatis/jdbc/ScriptRunner.java

Violation Priority Line
Avoid empty catch blocks 3 157159
Avoid empty catch blocks 3 187189
Avoid empty catch blocks 3 255258

org/apache/ibatis/jdbc/SqlRunner.java

Violation Priority Line
Avoid empty catch blocks 3 8890
Avoid empty catch blocks 3 123125
Avoid empty catch blocks 3 134136
Avoid empty catch blocks 3 156158
Avoid empty catch blocks 3 188190
Avoid empty catch blocks 3 197199
Avoid empty catch blocks 3 252254

org/apache/ibatis/logging/LogFactory.java

Violation Priority Line
Avoid empty catch blocks 3 9496

org/apache/ibatis/logging/jdbc/ResultSetLogger.java

Violation Priority Line
Useless parentheses. 3 70

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

Violation Priority Line
Avoid unused constructor parameters such as 'clazz'. 3 25

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

Violation Priority Line
Avoid empty catch blocks 3 4143
Avoid empty catch blocks 3 4345

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

Violation Priority Line
Avoid unused constructor parameters such as 'clazz'. 3 25

org/apache/ibatis/mapping/Discriminator.java

Violation Priority Line
Avoid unused constructor parameters such as 'configuration'. 3 37

org/apache/ibatis/mapping/ParameterMap.java

Violation Priority Line
Avoid unused constructor parameters such as 'configuration'. 3 38

org/apache/ibatis/mapping/ResultMap.java

Violation Priority Line
Useless parentheses. 3 94

org/apache/ibatis/mapping/VendorDatabaseIdProvider.java

Violation Priority Line
Avoid empty catch blocks 3 8890

org/apache/ibatis/reflection/Jdk.java

Violation Priority Line
Avoid empty catch blocks 3 3739
Avoid empty catch blocks 3 5456
Avoid empty catch blocks 3 7173

org/apache/ibatis/reflection/Reflector.java

Violation Priority Line
Useless parentheses. 3 93
Useless parentheses. 3 94
Avoid empty if statements 3 122124
These nested if statements could be combined 3 151154

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

Violation Priority Line
Avoid empty catch blocks 3 4749

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

Violation Priority Line
Useless parentheses. 3 40

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

Violation Priority Line
Avoid unused constructor parameters such as 'metaObject'. 3 32

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

Violation Priority Line
Useless parentheses. 3 61

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

Violation Priority Line
Useless parentheses. 3 78

org/apache/ibatis/session/SqlSessionFactoryBuilder.java

Violation Priority Line
Avoid empty catch blocks 3 5759
Avoid empty catch blocks 3 8587

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

Violation Priority Line
Useless parentheses. 3 317

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

Violation Priority Line
Avoid empty catch blocks 3 139141

org/apache/ibatis/type/BooleanTypeHandler.java

Violation Priority Line
Useless parentheses. 3 38
Useless parentheses. 3 45
Useless parentheses. 3 52

org/apache/ibatis/type/ByteTypeHandler.java

Violation Priority Line
Useless parentheses. 3 38
Useless parentheses. 3 45
Useless parentheses. 3 52

org/apache/ibatis/type/DoubleTypeHandler.java

Violation Priority Line
Useless parentheses. 3 38
Useless parentheses. 3 45
Useless parentheses. 3 52

org/apache/ibatis/type/FloatTypeHandler.java

Violation Priority Line
Useless parentheses. 3 38
Useless parentheses. 3 45
Useless parentheses. 3 52

org/apache/ibatis/type/IntegerTypeHandler.java

Violation Priority Line
Useless parentheses. 3 38
Useless parentheses. 3 45
Useless parentheses. 3 52

org/apache/ibatis/type/LongTypeHandler.java

Violation Priority Line
Useless parentheses. 3 38
Useless parentheses. 3 45
Useless parentheses. 3 52

org/apache/ibatis/type/MonthTypeHandler.java

Violation Priority Line
Useless parentheses. 3 39
Useless parentheses. 3 45
Useless parentheses. 3 51

org/apache/ibatis/type/ShortTypeHandler.java

Violation Priority Line
Useless parentheses. 3 38
Useless parentheses. 3 45
Useless parentheses. 3 52

org/apache/ibatis/type/TypeHandlerRegistry.java

Violation Priority Line
Avoid empty catch blocks 3 333335

org/apache/ibatis/type/YearTypeHandler.java

Violation Priority Line
Useless parentheses. 3 38
Useless parentheses. 3 44
Useless parentheses. 3 50