PMD Results

The following document contains the results of PMD 4.2.2.

Files

org/dozer/MappedFieldsTracker.java

ViolationLine
These nested if statements could be combined55 - 58

org/dozer/MappingProcessor.java

ViolationLine
A high number of imports can indicate a high degree of coupling within an object.16 - 1048
This class has too many methods, consider refactoring it.83 - 1048
The class 'MappingProcessor' has a Cyclomatic Complexity of 6 (Highest = 24).83 - 1048
The method 'mapField' has a Cyclomatic Complexity of 11.249 - 301
The method 'mapFromFieldMap' has a Cyclomatic Complexity of 10.303 - 343
The method mapOrRecurseObject() has an NPath complexity of 806400345 - 435
The method 'mapOrRecurseObject' has a Cyclomatic Complexity of 24.345 - 435
The method mapCollection() has an NPath complexity of 228488 - 552
The method 'mapCollection' has a Cyclomatic Complexity of 23.488 - 552
The method addToSet() has an NPath complexity of 488677 - 740
The method 'addToSet' has a Cyclomatic Complexity of 14.677 - 740
The method 'addOrUpdateToList' has a Cyclomatic Complexity of 13.742 - 794
The method 'writeDestinationValue' has a Cyclomatic Complexity of 11.848 - 875
The method 'getExistingValue' has a Cyclomatic Complexity of 11.1008 - 1031
These nested if statements could be combined1020 - 1028
These nested if statements could be combined1022 - 1027

org/dozer/classmap/ClassMap.java

ViolationLine
This class has a bunch of public methods and attributes16 - 339
This class has too many methods, consider refactoring it.37 - 339
Too many fields37 - 339

org/dozer/classmap/ClassMapBuilder.java

ViolationLine
This class has too many methods, consider refactoring it.45 - 392
These nested if statements could be combined118 - 120
The class 'MapMappingGenerator' has a Cyclomatic Complexity of 8 (Highest = 15).146 - 213
The method apply() has an NPath complexity of 12153156 - 212
The method 'apply' has a Cyclomatic Complexity of 15.156 - 212

org/dozer/classmap/ClassMappings.java

ViolationLine
This class has too many methods, consider refactoring it.35 - 165
The class 'ClassMappings' has a Cyclomatic Complexity of 3 (Highest = 13).35 - 165
The method 'find' has a Cyclomatic Complexity of 10.92 - 120
The method 'findInterfaceMapping' has a Cyclomatic Complexity of 13.123 - 155
These nested if statements could be combined148 - 150

org/dozer/classmap/DozerClass.java

ViolationLine
Avoid really long parameter lists.47 - 48

org/dozer/config/GlobalSettings.java

ViolationLine
Avoid empty catch blocks136 - 137

org/dozer/converters/DateConverter.java

ViolationLine
The class 'DateConverter' has a Cyclomatic Complexity of 8 (Highest = 14).43 - 103
The method 'convert' has a Cyclomatic Complexity of 14.51 - 101

org/dozer/factory/ConstructionStrategies.java

ViolationLine
This class has too many methods, consider refactoring it.32 - 310

org/dozer/fieldmap/DozerField.java

ViolationLine
Overriding method merely calls super160 - 162

org/dozer/fieldmap/FieldMap.java

ViolationLine
This class has a bunch of public methods and attributes16 - 492
This class has too many methods, consider refactoring it.47 - 492
Too many fields47 - 492

org/dozer/fieldmap/MapFieldMap.java

ViolationLine
The class 'MapFieldMap' has a Cyclomatic Complexity of 6 (Highest = 10).37 - 182
The method getSrcFieldValue() has an NPath complexity of 26088 - 119
The method 'getSrcFieldValue' has a Cyclomatic Complexity of 10.88 - 119

org/dozer/loader/DozerBuilder.java

ViolationLine
This class has a bunch of public methods and attributes16 - 590
This class has too many methods, consider refactoring it.52 - 590
This class has too many methods, consider refactoring it.79 - 182
This class has too many methods, consider refactoring it.224 - 363
Too many fields224 - 363
This class has too many methods, consider refactoring it.487 - 559

org/dozer/loader/MappingsParser.java

ViolationLine
The class 'MappingsParser' has a Cyclomatic Complexity of 10 (Highest = 28).43 - 166
The method processMappings() has an NPath complexity of 522654 - 164
Avoid really long methods.54 - 164
The method 'processMappings' has a Cyclomatic Complexity of 28.54 - 164
These nested if statements could be combined99 - 111

org/dozer/loader/api/BeanMappingBuilder.java

ViolationLine
This class has too many methods, consider refactoring it.29 - 107

org/dozer/loader/api/FieldsMappingOptions.java

ViolationLine
This class has too many methods, consider refactoring it.30 - 160

org/dozer/loader/api/TypeDefinition.java

ViolationLine
This class has too many methods, consider refactoring it.25 - 116

org/dozer/loader/api/TypeMappingOptions.java

ViolationLine
This class has too many methods, consider refactoring it.28 - 126

org/dozer/loader/xml/XMLParser.java

ViolationLine
This class has too many methods, consider refactoring it.43 - 521
The class 'XMLParser' has a Cyclomatic Complexity of 6 (Highest = 17).43 - 521
The method parseMapping() has an NPath complexity of 14336148 - 208
The method 'parseMapping' has a Cyclomatic Complexity of 17.148 - 208
The method parseClass() has an NPath complexity of 256210 - 235
The method parseField() has an NPath complexity of 256369 - 394
The method 'parseConfiguration' has a Cyclomatic Complexity of 13.396 - 432

org/dozer/propertydescriptor/GetterSetterPropertyDescriptor.java

ViolationLine
The class 'GetterSetterPropertyDescriptor' has a Cyclomatic Complexity of 4 (Highest = 24).48 - 343
Avoid empty catch blocks98 - 100
The method writeDeepDestinationValue() has an NPath complexity of 6012137 - 245
Avoid really long methods.137 - 245
The method 'writeDeepDestinationValue' has a Cyclomatic Complexity of 24.137 - 245
Avoid empty catch blocks283 - 284
Avoid empty catch blocks318 - 319
Avoid empty catch blocks326 - 327

org/dozer/propertydescriptor/MapPropertyDescriptor.java

ViolationLine
Avoid empty catch blocks95 - 97

org/dozer/propertydescriptor/PropertyDescriptorFactory.java

ViolationLine
The class 'PropertyDescriptorFactory' has a Cyclomatic Complexity of 8 (Highest = 14).28 - 75
Avoid really long parameter lists.33 - 36
The method 'getPropertyDescriptor' has a Cyclomatic Complexity of 14.33 - 74

org/dozer/util/MappingUtils.java

ViolationLine
This class has too many methods, consider refactoring it.52 - 405

org/dozer/util/ReflectionUtils.java

ViolationLine
This class has too many methods, consider refactoring it.43 - 370
The class 'ReflectionUtils' has a Cyclomatic Complexity of 4 (Highest = 11).43 - 370
The method 'getDeepFieldHierarchy' has a Cyclomatic Complexity of 11.90 - 147