PMD Results

The following document contains the results of PMD 6.21.0.

Violations By Priority

Priority 3

org/apache/ibatis/builder/MapperBuilderAssistant.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 533535

org/apache/ibatis/builder/SqlSourceBuilder.java

Rule Violation Line
EmptyIfStmt Avoid empty if statements 132134

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

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 154156
EmptyCatchBlock Avoid empty catch blocks 173175

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

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 153155
EmptyCatchBlock Avoid empty catch blocks 168170
EmptyCatchBlock Avoid empty catch blocks 183185
EmptyCatchBlock Avoid empty catch blocks 247249
EmptyCatchBlock Avoid empty catch blocks 424426

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

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 8082

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

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 117119

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

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 343345
EmptyCatchBlock Avoid empty catch blocks 357359
EmptyCatchBlock Avoid empty catch blocks 568570

org/apache/ibatis/executor/BaseExecutor.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 284286

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

Rule Violation Line
EmptyIfStmt Avoid empty if statements 8284
EmptyIfStmt Avoid empty if statements 272274

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

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 7981

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

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 7981

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

Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 258265
EmptyCatchBlock Avoid empty catch blocks 267269
EmptyCatchBlock Avoid empty catch blocks 278280

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

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 141143

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

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 133135

org/apache/ibatis/io/ClassLoaderWrapper.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 188190

org/apache/ibatis/io/DefaultVFS.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 163165
EmptyCatchBlock Avoid empty catch blocks 342344
EmptyCatchBlock Avoid empty catch blocks 348350

org/apache/ibatis/jdbc/ScriptRunner.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 170172
EmptyCatchBlock Avoid empty catch blocks 200202

org/apache/ibatis/jdbc/SqlRunner.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 8890
EmptyCatchBlock Avoid empty catch blocks 123125
EmptyCatchBlock Avoid empty catch blocks 134136
EmptyCatchBlock Avoid empty catch blocks 156158
EmptyCatchBlock Avoid empty catch blocks 188190
EmptyCatchBlock Avoid empty catch blocks 201203
EmptyCatchBlock Avoid empty catch blocks 256258

org/apache/ibatis/logging/LogFactory.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 9496

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

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

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

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 4143

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

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

org/apache/ibatis/mapping/Discriminator.java

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

org/apache/ibatis/mapping/ParameterMap.java

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

org/apache/ibatis/reflection/Jdk.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 3739
EmptyCatchBlock Avoid empty catch blocks 5456
EmptyCatchBlock Avoid empty catch blocks 7173

org/apache/ibatis/reflection/MetaClass.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 129131

org/apache/ibatis/reflection/Reflector.java

Rule Violation Line
EmptyIfStmt Avoid empty if statements 112114

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

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 4749

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

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

org/apache/ibatis/session/SqlSessionFactoryBuilder.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 5759
EmptyCatchBlock Avoid empty catch blocks 8587

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

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 139141

org/apache/ibatis/type/TypeHandlerRegistry.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 350352

Priority 4

org/apache/ibatis/cache/decorators/BlockingCache.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'java.text.MessageFormat' 18

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

Rule Violation Line
UselessParentheses Useless parentheses. 478
UselessParentheses Useless parentheses. 492
UselessParentheses Useless parentheses. 564

org/apache/ibatis/mapping/ResultMap.java

Rule Violation Line
UselessParentheses Useless parentheses. 94

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

Rule Violation Line
UselessParentheses Useless parentheses. 40
UselessParentheses Useless parentheses. 52
UselessParentheses Useless parentheses. 52

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

Rule Violation Line
UselessParentheses Useless parentheses. 316

Files

org/apache/ibatis/builder/MapperBuilderAssistant.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 533535

org/apache/ibatis/builder/SqlSourceBuilder.java

Rule Violation Priority Line
EmptyIfStmt Avoid empty if statements 3 132134

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

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 154156
EmptyCatchBlock Avoid empty catch blocks 3 173175

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

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 153155
EmptyCatchBlock Avoid empty catch blocks 3 168170
EmptyCatchBlock Avoid empty catch blocks 3 183185
EmptyCatchBlock Avoid empty catch blocks 3 247249
EmptyCatchBlock Avoid empty catch blocks 3 424426

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

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 8082

org/apache/ibatis/cache/decorators/BlockingCache.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'java.text.MessageFormat' 4 18

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

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 117119

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

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 343345
EmptyCatchBlock Avoid empty catch blocks 3 357359
EmptyCatchBlock Avoid empty catch blocks 3 568570

org/apache/ibatis/executor/BaseExecutor.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 284286

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

Rule Violation Priority Line
EmptyIfStmt Avoid empty if statements 3 8284
EmptyIfStmt Avoid empty if statements 3 272274

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

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 7981

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

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 7981

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

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 258265
EmptyCatchBlock Avoid empty catch blocks 3 267269
EmptyCatchBlock Avoid empty catch blocks 3 278280
UselessParentheses Useless parentheses. 4 478
UselessParentheses Useless parentheses. 4 492
UselessParentheses Useless parentheses. 4 564

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

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 141143

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

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 133135

org/apache/ibatis/io/ClassLoaderWrapper.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 188190

org/apache/ibatis/io/DefaultVFS.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 163165
EmptyCatchBlock Avoid empty catch blocks 3 342344
EmptyCatchBlock Avoid empty catch blocks 3 348350

org/apache/ibatis/jdbc/ScriptRunner.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 170172
EmptyCatchBlock Avoid empty catch blocks 3 200202

org/apache/ibatis/jdbc/SqlRunner.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 8890
EmptyCatchBlock Avoid empty catch blocks 3 123125
EmptyCatchBlock Avoid empty catch blocks 3 134136
EmptyCatchBlock Avoid empty catch blocks 3 156158
EmptyCatchBlock Avoid empty catch blocks 3 188190
EmptyCatchBlock Avoid empty catch blocks 3 201203
EmptyCatchBlock Avoid empty catch blocks 3 256258

org/apache/ibatis/logging/LogFactory.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 9496

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

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

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

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 4143

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

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

org/apache/ibatis/mapping/Discriminator.java

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

org/apache/ibatis/mapping/ParameterMap.java

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

org/apache/ibatis/mapping/ResultMap.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 94

org/apache/ibatis/reflection/Jdk.java

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

org/apache/ibatis/reflection/MetaClass.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 129131

org/apache/ibatis/reflection/Reflector.java

Rule Violation Priority Line
EmptyIfStmt Avoid empty if statements 3 112114

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

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 4749

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 40
UselessParentheses Useless parentheses. 4 52
UselessParentheses Useless parentheses. 4 52

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

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

org/apache/ibatis/session/SqlSessionFactoryBuilder.java

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

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 316

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

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 139141

org/apache/ibatis/type/TypeHandlerRegistry.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 350352