Apache Commons logo Apache Commons Geometry

PMD Results

The following document contains the results of PMD 6.36.0.

Violations By Priority

Priority 1

org/apache/commons/geometry/examples/tutorials/bsp/BSPTreeSVGWriter.java

Rule Violation Line
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 251

Priority 3

org/apache/commons/geometry/examples/tutorials/bsp/BSPTreeSVGWriter.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 17783
RedundantFieldInitializer Avoid using redundant field initializer for 'treeParentXOffsetMin' 155
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 187
RedundantFieldInitializer Avoid using redundant field initializer for 'count' 401
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 451
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 464
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 465
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 535
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 535
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 540
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 544
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 577
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 651
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 655
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 659
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 698
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 770
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 771

org/apache/commons/geometry/examples/tutorials/bsp/BottomUpBSPTreeConstruction.java

Rule Violation Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 50

org/apache/commons/geometry/examples/tutorials/bsp/TopDownBSPTreeConstruction.java

Rule Violation Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 52

org/apache/commons/geometry/examples/tutorials/teapot/TeapotBuilder.java

Rule Violation Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 146
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 373
LocalVariableCouldBeFinal Local variable 'entry' could be declared final 388
LocalVariableCouldBeFinal Local variable 'entry' could be declared final 395

Files

org/apache/commons/geometry/examples/tutorials/bsp/BSPTreeSVGWriter.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 17783
RedundantFieldInitializer Avoid using redundant field initializer for 'treeParentXOffsetMin' 3 155
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 187
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 1 251
RedundantFieldInitializer Avoid using redundant field initializer for 'count' 3 401
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 451
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 464
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 465
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 535
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 535
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 540
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 544
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 3 577
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 651
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 655
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 659
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 698
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 770
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 771

org/apache/commons/geometry/examples/tutorials/bsp/BottomUpBSPTreeConstruction.java

Rule Violation Priority Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 50

org/apache/commons/geometry/examples/tutorials/bsp/TopDownBSPTreeConstruction.java

Rule Violation Priority Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 52

org/apache/commons/geometry/examples/tutorials/teapot/TeapotBuilder.java

Rule Violation Priority Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 146
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 373
LocalVariableCouldBeFinal Local variable 'entry' could be declared final 3 388
LocalVariableCouldBeFinal Local variable 'entry' could be declared final 3 395