Apache Commons logo Commons BeanUtils

PMD Results

The following document contains the results of PMD 7.9.0.

Violations By Priority

Priority 3

org/apache/commons/beanutils2/BeanIntrospectionData.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 130132

org/apache/commons/beanutils2/BeanUtilsBean.java

Rule Violation Line
UnusedFormalParameter Avoid unused constructor parameters such as 'todoRemove'. 153
EmptyCatchBlock Avoid empty catch blocks 303305

org/apache/commons/beanutils2/ConstructorUtils.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 149151
EmptyCatchBlock Avoid empty catch blocks 154155
EmptyCatchBlock Avoid empty catch blocks 179183

org/apache/commons/beanutils2/ContextClassLoaderLocal.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 134135
EmptyCatchBlock Avoid empty catch blocks 176177
EmptyCatchBlock Avoid empty catch blocks 193194

org/apache/commons/beanutils2/ConvertUtilsBean.java

Rule Violation Line
UnusedPrivateMethod Avoid unused private methods such as 'convert(String[], Class<T>, Converter<T>)'. 315
BigIntegerInstantiation Don't create instances of already existing BigInteger and BigDecimal (ZERO, ONE, TEN) 658

org/apache/commons/beanutils2/DynaProperty.java

Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'BOOLEAN_TYPE'. 42
UnusedPrivateField Avoid unused private fields such as 'BYTE_TYPE'. 43
UnusedPrivateField Avoid unused private fields such as 'CHAR_TYPE'. 44
UnusedPrivateField Avoid unused private fields such as 'DOUBLE_TYPE'. 45
UnusedPrivateField Avoid unused private fields such as 'FLOAT_TYPE'. 46
UnusedPrivateField Avoid unused private fields such as 'INT_TYPE'. 47
UnusedPrivateField Avoid unused private fields such as 'LONG_TYPE'. 48
UnusedPrivateField Avoid unused private fields such as 'SHORT_TYPE'. 49

org/apache/commons/beanutils2/FluentPropertyBeanIntrospector.java

Rule Violation Line
UnusedFormalParameter Avoid unused method parameters such as 'propertyName'. 109

org/apache/commons/beanutils2/LazyDynaBean.java

Rule Violation Line
BigIntegerInstantiation Don't create instances of already existing BigInteger and BigDecimal (ZERO, ONE, TEN) 135
BigIntegerInstantiation Don't create instances of already existing BigInteger and BigDecimal (ZERO, ONE, TEN) 137

org/apache/commons/beanutils2/MappedPropertyDescriptor.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 141143
EmptyCatchBlock Avoid empty catch blocks 294298

org/apache/commons/beanutils2/MethodUtils.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 316320
EmptyCatchBlock Avoid empty catch blocks 429430

org/apache/commons/beanutils2/PropertyUtilsBean.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 684688

org/apache/commons/beanutils2/converters/ClassConverter.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 7982

org/apache/commons/beanutils2/sql/AbstractJdbcDynaClass.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 114117

Priority 4

org/apache/commons/beanutils2/BeanUtilsBean.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.util': 'HashMap' is already in scope because it is imported in this file 483

org/apache/commons/beanutils2/DefaultBeanIntrospector.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.util': 'List' is already in scope because it is imported in this file 51

org/apache/commons/beanutils2/LazyDynaClass.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.lang': 'UnsupportedOperationException' is already in scope because it is declared in java.lang 190

org/apache/commons/beanutils2/LazyDynaMap.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.lang': 'UnsupportedOperationException' is already in scope because it is declared in java.lang 204

org/apache/commons/beanutils2/MethodUtils.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'MethodUtils': 'getPrimitiveWrapper' is already in scope 1165

org/apache/commons/beanutils2/locale/converters/DateLocaleConverter.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'DateLocaleConverter': 'initDefaultChars' is already in scope 95

org/apache/commons/beanutils2/sql/AbstractJdbcDynaClass.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.sql': 'Date' is already in scope because it is imported in this file 106
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.sql': 'Timestamp' is already in scope because it is imported in this file 108
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.sql': 'Time' is already in scope because it is imported in this file 110

Files

org/apache/commons/beanutils2/BeanIntrospectionData.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 130132

org/apache/commons/beanutils2/BeanUtilsBean.java

Rule Violation Priority Line
UnusedFormalParameter Avoid unused constructor parameters such as 'todoRemove'. 3 153
EmptyCatchBlock Avoid empty catch blocks 3 303305
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.util': 'HashMap' is already in scope because it is imported in this file 4 483

org/apache/commons/beanutils2/ConstructorUtils.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 149151
EmptyCatchBlock Avoid empty catch blocks 3 154155
EmptyCatchBlock Avoid empty catch blocks 3 179183

org/apache/commons/beanutils2/ContextClassLoaderLocal.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 134135
EmptyCatchBlock Avoid empty catch blocks 3 176177
EmptyCatchBlock Avoid empty catch blocks 3 193194

org/apache/commons/beanutils2/ConvertUtilsBean.java

Rule Violation Priority Line
UnusedPrivateMethod Avoid unused private methods such as 'convert(String[], Class<T>, Converter<T>)'. 3 315
BigIntegerInstantiation Don't create instances of already existing BigInteger and BigDecimal (ZERO, ONE, TEN) 3 658

org/apache/commons/beanutils2/DefaultBeanIntrospector.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.util': 'List' is already in scope because it is imported in this file 4 51

org/apache/commons/beanutils2/DynaProperty.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'BOOLEAN_TYPE'. 3 42
UnusedPrivateField Avoid unused private fields such as 'BYTE_TYPE'. 3 43
UnusedPrivateField Avoid unused private fields such as 'CHAR_TYPE'. 3 44
UnusedPrivateField Avoid unused private fields such as 'DOUBLE_TYPE'. 3 45
UnusedPrivateField Avoid unused private fields such as 'FLOAT_TYPE'. 3 46
UnusedPrivateField Avoid unused private fields such as 'INT_TYPE'. 3 47
UnusedPrivateField Avoid unused private fields such as 'LONG_TYPE'. 3 48
UnusedPrivateField Avoid unused private fields such as 'SHORT_TYPE'. 3 49

org/apache/commons/beanutils2/FluentPropertyBeanIntrospector.java

Rule Violation Priority Line
UnusedFormalParameter Avoid unused method parameters such as 'propertyName'. 3 109

org/apache/commons/beanutils2/LazyDynaBean.java

Rule Violation Priority Line
BigIntegerInstantiation Don't create instances of already existing BigInteger and BigDecimal (ZERO, ONE, TEN) 3 135
BigIntegerInstantiation Don't create instances of already existing BigInteger and BigDecimal (ZERO, ONE, TEN) 3 137

org/apache/commons/beanutils2/LazyDynaClass.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.lang': 'UnsupportedOperationException' is already in scope because it is declared in java.lang 4 190

org/apache/commons/beanutils2/LazyDynaMap.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.lang': 'UnsupportedOperationException' is already in scope because it is declared in java.lang 4 204

org/apache/commons/beanutils2/MappedPropertyDescriptor.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 141143
EmptyCatchBlock Avoid empty catch blocks 3 294298

org/apache/commons/beanutils2/MethodUtils.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 316320
EmptyCatchBlock Avoid empty catch blocks 3 429430
UnnecessaryFullyQualifiedName Unnecessary qualifier 'MethodUtils': 'getPrimitiveWrapper' is already in scope 4 1165

org/apache/commons/beanutils2/PropertyUtilsBean.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 684688

org/apache/commons/beanutils2/converters/ClassConverter.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 7982

org/apache/commons/beanutils2/locale/converters/DateLocaleConverter.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'DateLocaleConverter': 'initDefaultChars' is already in scope 4 95

org/apache/commons/beanutils2/sql/AbstractJdbcDynaClass.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.sql': 'Date' is already in scope because it is imported in this file 4 106
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.sql': 'Timestamp' is already in scope because it is imported in this file 4 108
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.sql': 'Time' is already in scope because it is imported in this file 4 110
EmptyCatchBlock Avoid empty catch blocks 3 114117