PMD Results

The following document contains the results of PMD 4.2.2.

Files

org/dozer/MappingProcessor.java

Violation Line
A high number of imports can indicate a high degree of coupling within an object. 16 - 993
This class has too many methods, consider refactoring it. 81 - 993
The class 'MappingProcessor' has a Cyclomatic Complexity of 6 (Highest = 25). 81 - 993
The method 'mapField' has a Cyclomatic Complexity of 11. 218 - 270
The method 'mapFromFieldMap' has a Cyclomatic Complexity of 10. 272 - 312
The method mapOrRecurseObject() has an NPath complexity of 1411200 314 - 406
The method 'mapOrRecurseObject' has a Cyclomatic Complexity of 25. 314 - 406
The method mapCollection() has an NPath complexity of 380 446 - 517
The method 'mapCollection' has a Cyclomatic Complexity of 24. 446 - 517
The method 'addToSet' has a Cyclomatic Complexity of 11. 638 - 689
The method 'addOrUpdateToList' has a Cyclomatic Complexity of 10. 691 - 738
The method 'writeDestinationValue' has a Cyclomatic Complexity of 11. 792 - 819
The method 'getExistingValue' has a Cyclomatic Complexity of 11. 947 - 970
These nested if statements could be combined 959 - 967
These nested if statements could be combined 961 - 966

org/dozer/classmap/ClassMap.java

Violation Line
This class has a bunch of public methods and attributes 16 - 335
This class has too many methods, consider refactoring it. 38 - 335
Too many fields 38 - 335

org/dozer/classmap/ClassMapBuilder.java

Violation Line
The class 'ClassMapBuilder' has a Cyclomatic Complexity of 9 (Highest = 21). 42 - 187
The method addDefaultFieldMappings() has an NPath complexity of 725 75 - 125
The method 'addDefaultFieldMappings' has a Cyclomatic Complexity of 15. 75 - 125
The method addMapDefaultFieldMappings() has an NPath complexity of 101255 127 - 185
The method 'addMapDefaultFieldMappings' has a Cyclomatic Complexity of 21. 127 - 185

org/dozer/classmap/ClassMappings.java

Violation Line
The class 'ClassMappings' has a Cyclomatic Complexity of 3 (Highest = 14). 38 - 172
The method 'find' has a Cyclomatic Complexity of 10. 79 - 105
The method 'findInterfaceMapping' has a Cyclomatic Complexity of 14. 139 - 170
These nested if statements could be combined 163 - 165

org/dozer/config/GlobalSettings.java

Violation Line
Avoid empty catch blocks 134 - 135

org/dozer/converters/DateConverter.java

Violation Line
The class 'DateConverter' has a Cyclomatic Complexity of 8 (Highest = 14). 44 - 104
The method 'convert' has a Cyclomatic Complexity of 14. 52 - 102

org/dozer/factory/DestBeanCreator.java

Violation Line
The class 'DestBeanCreator' has a Cyclomatic Complexity of 5 (Highest = 12). 40 - 184
The method create() has an NPath complexity of 315 60 - 120
The method 'create' has a Cyclomatic Complexity of 12. 60 - 120

org/dozer/fieldmap/FieldMap.java

Violation Line
This class has a bunch of public methods and attributes 16 - 471
This class has too many methods, consider refactoring it. 45 - 471
Too many fields 45 - 471

org/dozer/fieldmap/MapFieldMap.java

Violation Line
The class 'MapFieldMap' has a Cyclomatic Complexity of 6 (Highest = 10). 37 - 181
The method getSrcFieldValue() has an NPath complexity of 260 87 - 118
The method 'getSrcFieldValue' has a Cyclomatic Complexity of 10. 87 - 118

org/dozer/loader/CustomMappingsLoader.java

Violation Line
The class 'CustomMappingsLoader' has a Cyclomatic Complexity of 14 (Highest = 13). 49 - 117
The method load() has an NPath complexity of 288 56 - 116
The method 'load' has a Cyclomatic Complexity of 13. 56 - 116

org/dozer/loader/MappingsParser.java

Violation Line
The class 'MappingsParser' has a Cyclomatic Complexity of 9 (Highest = 25). 43 - 167
The method processMappings() has an NPath complexity of 6414 54 - 165
Avoid really long methods. 54 - 165
The method 'processMappings' has a Cyclomatic Complexity of 25. 54 - 165
These nested if statements could be combined 104 - 112

org/dozer/loader/xml/XMLParser.java

Violation Line
This class has too many methods, consider refactoring it. 54 - 555
The class 'XMLParser' has a Cyclomatic Complexity of 8 (Highest = 32). 54 - 555
The method parseMapping() has an NPath complexity of 102244352 128 - 231
Avoid really long methods. 128 - 231
The method 'parseMapping' has a Cyclomatic Complexity of 32. 128 - 231
The method 'determineFieldMap' has a Cyclomatic Complexity of 11. 288 - 317
The method parseField() has an NPath complexity of 2048 382 - 425
The method 'parseField' has a Cyclomatic Complexity of 12. 382 - 425
The method 'parseConfiguration' has a Cyclomatic Complexity of 14. 427 - 468

org/dozer/propertydescriptor/GetterSetterPropertyDescriptor.java

Violation Line
The class 'GetterSetterPropertyDescriptor' has a Cyclomatic Complexity of 4 (Highest = 23). 40 - 298
Avoid empty catch blocks 84 - 86
The method writeDeepDestinationValue() has an NPath complexity of 4512 126 - 227
Avoid really long methods. 126 - 227
The method 'writeDeepDestinationValue' has a Cyclomatic Complexity of 23. 126 - 227
Avoid empty catch blocks 264
Avoid empty catch blocks 285 - 286
Avoid empty catch blocks 293 - 294

org/dozer/propertydescriptor/MapPropertyDescriptor.java

Violation Line
Avoid empty catch blocks 94 - 96

org/dozer/propertydescriptor/PropertyDescriptorFactory.java

Violation Line
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

Violation Line
This class has too many methods, consider refactoring it. 56 - 417

org/dozer/util/ReflectionUtils.java

Violation Line
The class 'ReflectionUtils' has a Cyclomatic Complexity of 4 (Highest = 11). 44 - 321
The method 'getDeepFieldHierarchy' has a Cyclomatic Complexity of 11. 71 - 128