PMD Results

The following document contains the results of PMD 5.2.3.

Files

org/apache/ibatis/binding/MapperMethod.java

Violation Line
Useless parentheses. 231
Useless parentheses. 233

org/apache/ibatis/builder/MapperBuilderAssistant.java

Violation Line
Avoid empty catch blocks 453455

org/apache/ibatis/builder/SqlSourceBuilder.java

Violation Line
Avoid empty if statements 112114

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

Violation Line
Avoid empty catch blocks 146148
Avoid empty catch blocks 162164
Useless parentheses. 523
Useless parentheses. 525

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

Violation Line
These nested if statements could be combined 4650

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

Violation Line
Avoid empty catch blocks 150152
Avoid empty catch blocks 165167
Avoid empty catch blocks 180182
Avoid empty catch blocks 245247
These nested if statements could be combined 385388
Avoid empty catch blocks 399401
These nested if statements could be combined 403409

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

Violation Line
Avoid empty catch blocks 106108

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

Violation Line
Useless parentheses. 216

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

Violation Line
Avoid empty catch blocks 296298
Avoid empty catch blocks 310312
These nested if statements could be combined 485516
These nested if statements could be combined 486515
Avoid empty catch blocks 507509

org/apache/ibatis/executor/BaseExecutor.java

Violation Line
Avoid empty catch blocks 276278

org/apache/ibatis/executor/CachingExecutor.java

Violation Line
Avoid unused method parameters such as 'parameter'. 127

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

Violation Line
Avoid empty catch blocks 7880

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

Violation Line
Avoid empty catch blocks 8688
Useless parentheses. 185

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

Violation Line
Avoid empty catch blocks 8688
Useless parentheses. 187

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

Violation Line
These nested if statements could be combined 206209
Useless parentheses. 206
Useless parentheses. 206
Avoid empty catch blocks 211213
Avoid empty catch blocks 222224
Useless parentheses. 382
Useless parentheses. 390
Method call on object which may be null 393395
Useless parentheses. 836

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

Violation Line
Avoid empty catch blocks 130132

org/apache/ibatis/io/ClassLoaderWrapper.java

Violation Line
Avoid empty catch blocks 3436
Avoid empty catch blocks 192194

org/apache/ibatis/io/DefaultVFS.java

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

org/apache/ibatis/io/ExternalResources.java

Violation Line
Avoid empty catch blocks 5860

org/apache/ibatis/io/ResolverUtil.java

Violation Line
Avoid modifiers which are implied by the context 6975

org/apache/ibatis/io/VFS.java

Violation Line
These nested if statements could be combined 6972

org/apache/ibatis/jdbc/ScriptRunner.java

Violation Line
Avoid empty catch blocks 148150
Avoid empty catch blocks 178180
Avoid empty catch blocks 241243

org/apache/ibatis/jdbc/SqlRunner.java

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

org/apache/ibatis/logging/LogFactory.java

Violation Line
Avoid empty catch blocks 124126

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

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

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

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

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

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

org/apache/ibatis/mapping/Discriminator.java

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

org/apache/ibatis/mapping/ParameterMap.java

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

org/apache/ibatis/mapping/ResultMap.java

Violation Line
Avoid unused constructor parameters such as 'configuration'. 53
Useless parentheses. 79

org/apache/ibatis/mapping/VendorDatabaseIdProvider.java

Violation Line
Avoid empty catch blocks 8991

org/apache/ibatis/reflection/MetaClass.java

Violation Line
Avoid empty catch blocks 129130
Avoid empty catch blocks 130131

org/apache/ibatis/reflection/Reflector.java

Violation Line
Avoid empty catch blocks 8284
These nested if statements could be combined 104107
Avoid empty if statements 130132
These nested if statements could be combined 159162
Avoid empty catch blocks 224226
Avoid empty catch blocks 307309

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

Violation Line
Avoid empty catch blocks 3739

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

Violation Line
Useless parentheses. 40

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

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

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

Violation Line
Avoid modifiers which are implied by the context 51
Avoid modifiers which are implied by the context 53

org/apache/ibatis/session/SqlSessionFactoryBuilder.java

Violation Line
Avoid empty catch blocks 5961
Avoid empty catch blocks 8789

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

Violation Line
Useless parentheses. 268

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

Violation Line
Avoid empty catch blocks 139141

org/apache/ibatis/type/DateOnlyTypeHandler.java

Violation Line
Useless parentheses. 32
Unnecessary use of fully qualified name 'java.util.Date' due to existing import 'java.util.Date' 40
Unnecessary use of fully qualified name 'java.util.Date' due to existing import 'java.util.Date' 50
Unnecessary use of fully qualified name 'java.util.Date' due to existing import 'java.util.Date' 60

org/apache/ibatis/type/DateTypeHandler.java

Violation Line
Useless parentheses. 33

org/apache/ibatis/type/TimeOnlyTypeHandler.java

Violation Line
Unnecessary use of fully qualified name 'java.sql.Time' due to existing import 'java.sql.Time' 39
Unnecessary use of fully qualified name 'java.sql.Time' due to existing import 'java.sql.Time' 49
Unnecessary use of fully qualified name 'java.sql.Time' due to existing import 'java.sql.Time' 59

org/apache/ibatis/type/TypeHandlerRegistry.java

Violation Line
Avoid empty catch blocks 215217
Avoid empty catch blocks 306308