PMD Results

The following document contains the results of PMD 7.17.0.

Violations By Priority

Priority 4

org/springframework/orm/ibatis/SqlMapClientFactoryBean.java

Rule Violation Line
UselessParentheses Useless parentheses around `this.sqlMapClient != null ? this.sqlMapClient.g...`. 414

org/springframework/orm/ibatis/SqlMapClientTemplate.java

Rule Violation Line
UnnecessaryImport Unused import 'com.ibatis.sqlmap.client.SqlMapExecutor' 10
UselessParentheses Useless parentheses around `ds != null ? ds : this.sqlMapClient.getDataSour...`. 139
UselessParentheses Useless parentheses around `dataSource instanceof TransactionAwareDataSourc...`. 183
UselessParentheses Useless parentheses around `result != null ? result : 0`. 349
UselessParentheses Useless parentheses around `result != null ? result : 0`. 370

org/springframework/orm/ibatis/support/AbstractLobTypeHandler.java

Rule Violation Line
UselessParentheses Useless parentheses around `jdbcType != null ? jdbcType : ""`. 172

Files

org/springframework/orm/ibatis/SqlMapClientFactoryBean.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `this.sqlMapClient != null ? this.sqlMapClient.g...`. 4 414

org/springframework/orm/ibatis/SqlMapClientTemplate.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'com.ibatis.sqlmap.client.SqlMapExecutor' 4 10
UselessParentheses Useless parentheses around `ds != null ? ds : this.sqlMapClient.getDataSour...`. 4 139
UselessParentheses Useless parentheses around `dataSource instanceof TransactionAwareDataSourc...`. 4 183
UselessParentheses Useless parentheses around `result != null ? result : 0`. 4 349
UselessParentheses Useless parentheses around `result != null ? result : 0`. 4 370

org/springframework/orm/ibatis/support/AbstractLobTypeHandler.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `jdbcType != null ? jdbcType : ""`. 4 172