Apache Commons logo Apache Commons Geometry

PMD Results

The following document contains the results of PMD 6.36.0.

Violations By Priority

Priority 3

org/apache/commons/geometry/euclidean/AbstractLinecastPoint.java

Rule Violation Line
AbstractClassWithoutAbstractMethod This abstract class does not have any abstract methods 31130

org/apache/commons/geometry/euclidean/internal/AbstractPathConnector.java

Rule Violation Line
CompareObjectsWithEquals Use equals() to compare object references. 194

org/apache/commons/geometry/euclidean/oned/Interval.java

Rule Violation Line
CyclomaticComplexity The class 'Interval' has a total cyclomatic complexity of 93 (highest 15). 35510
AvoidFieldNameMatchingMethodName Field FULL has the same name as a method 37
CyclomaticComplexity The method 'split(Hyperplane)' has a cyclomatic complexity of 11. 297330
CyclomaticComplexity The method 'of(OrientedPoint, OrientedPoint)' has a cyclomatic complexity of 15. 409435
NPathComplexity The method 'of(OrientedPoint, OrientedPoint)' has an NPath complexity of 1200, current threshold is 200 409435
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 433
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 434

org/apache/commons/geometry/euclidean/oned/OrientedPoint.java

Rule Violation Line
InsufficientStringBufferDeclaration StringBuilder has been initialized with size 16, but has at least 22 characters appended. 239

org/apache/commons/geometry/euclidean/oned/RegionBSPTree1D.java

Rule Violation Line
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 245
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 253
CyclomaticComplexity The method 'visitNodeInterval(BiConsumer)' has a cyclomatic complexity of 10. 374399
AssignmentInOperand Avoid assignments in operands 382

org/apache/commons/geometry/euclidean/oned/Vector1D.java

Rule Violation Line
ExcessivePublicCount This class has a bunch of public methods and attributes 17484
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 433
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 439
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 446

org/apache/commons/geometry/euclidean/threed/AbstractConvexPolygon3D.java

Rule Violation Line
CyclomaticComplexity The method 'split(Hyperplane)' has a cyclomatic complexity of 14. 296382
CognitiveComplexity The method 'split(Hyperplane)' has a cognitive complexity of 20, current threshold is 15 296382
InsufficientStringBufferDeclaration StringBuilder has been initialized with size 16, but has at least 22 characters appended. 441

org/apache/commons/geometry/euclidean/threed/AbstractEmbeddedRegionPlaneSubset.java

Rule Violation Line
InsufficientStringBufferDeclaration StringBuilder has been initialized with size 16, but has at least 27 characters appended. 107

org/apache/commons/geometry/euclidean/threed/Bounds3D.java

Rule Violation Line
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 184
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 287

org/apache/commons/geometry/euclidean/threed/ConvexVolume.java

Rule Violation Line
AvoidFieldNameMatchingMethodName Field FULL has the same name as a method 37

org/apache/commons/geometry/euclidean/threed/EmbeddingPlane.java

Rule Violation Line
InsufficientStringBufferDeclaration StringBuilder has been initialized with size 16, but has at least 25 characters appended. 239

org/apache/commons/geometry/euclidean/threed/Plane.java

Rule Violation Line
InsufficientStringBufferDeclaration StringBuilder has been initialized with size 16, but has at least 20 characters appended. 390
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 414
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 419
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 424

org/apache/commons/geometry/euclidean/threed/RegionBSPTree3D.java

Rule Violation Line
LinguisticNaming Linguistics Antipattern - The transform method 'toConvexRecursive' should not return void linguistically 108123
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 136
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 232
AssignmentInOperand Avoid assignments in operands 256

org/apache/commons/geometry/euclidean/threed/Vector3D.java

Rule Violation Line
ExcessivePublicCount This class has a bunch of public methods and attributes 17901
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 358
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 361
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 364
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 512
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 841
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 842
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 843
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 849
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 850
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 851
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 858
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 859
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 860

org/apache/commons/geometry/euclidean/threed/line/EmbeddedTreeLineSubset3D.java

Rule Violation Line
InsufficientStringBufferDeclaration StringBuilder has been initialized with size 16, but has at least 41 characters appended. 144
ConsecutiveLiteralAppends StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. 146

org/apache/commons/geometry/euclidean/threed/line/Ray3D.java

Rule Violation Line
InsufficientStringBufferDeclaration StringBuilder has been initialized with size 16, but has at least 27 characters appended. 148

org/apache/commons/geometry/euclidean/threed/line/ReverseRay3D.java

Rule Violation Line
InsufficientStringBufferDeclaration StringBuilder has been initialized with size 16, but has at least 25 characters appended. 142

org/apache/commons/geometry/euclidean/threed/line/Segment3D.java

Rule Violation Line
InsufficientStringBufferDeclaration StringBuilder has been initialized with size 16, but has at least 26 characters appended. 139

org/apache/commons/geometry/euclidean/threed/mesh/SimpleTriangleMesh.java

Rule Violation Line
ExcessivePublicCount This class has a bunch of public methods and attributes 17779
AvoidFieldNameMatchingMethodName Field vertices has the same name as a method 58
AvoidFieldNameMatchingMethodName Field faces has the same name as a method 61
InsufficientStringBufferDeclaration StringBuilder has been initialized with size 16, but has at least 38 characters appended. 200
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 230
ArrayIsStoredDirectly The user-supplied array 'vertexIndices' is stored directly. 295
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 324
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 330
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 336
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 346
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 356
InsufficientStringBufferDeclaration StringBuilder has been initialized with size 16, but has at least 38 characters appended. 362
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 398
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 417
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 423
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 667671

org/apache/commons/geometry/euclidean/threed/rotation/AxisAngleSequence.java

Rule Violation Line
InsufficientStringBufferDeclaration StringBuilder has been initialized with size 16, but has at least 41 characters appended. 167

org/apache/commons/geometry/euclidean/threed/rotation/QuaternionRotation.java

Rule Violation Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 403
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 472
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 589

org/apache/commons/geometry/euclidean/threed/shape/Parallelepiped.java

Rule Violation Line
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 178
LinguisticNaming Linguistics Antipattern - The setter 'setPosition' should not return any type except void linguistically 254257
LinguisticNaming Linguistics Antipattern - The setter 'setScale' should not return any type except void linguistically 264267
LinguisticNaming Linguistics Antipattern - The setter 'setScale' should not return any type except void linguistically 276278
LinguisticNaming Linguistics Antipattern - The setter 'setScale' should not return any type except void linguistically 285287
LinguisticNaming Linguistics Antipattern - The setter 'setRotation' should not return any type except void linguistically 293296

org/apache/commons/geometry/euclidean/twod/Bounds2D.java

Rule Violation Line
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 176
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 268

org/apache/commons/geometry/euclidean/twod/ConvexArea.java

Rule Violation Line
AvoidFieldNameMatchingMethodName Field FULL has the same name as a method 44
CyclomaticComplexity The method 'convexPolygonFromPath(LinePath)' has a cyclomatic complexity of 11. 221271
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 228

org/apache/commons/geometry/euclidean/twod/EmbeddedTreeLineSubset.java

Rule Violation Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 173
InsufficientStringBufferDeclaration StringBuilder has been initialized with size 16, but has at least 41 characters appended. 233
ConsecutiveLiteralAppends StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. 235

org/apache/commons/geometry/euclidean/twod/Ray.java

Rule Violation Line
InsufficientStringBufferDeclaration StringBuilder has been initialized with size 16, but has at least 27 characters appended. 155

org/apache/commons/geometry/euclidean/twod/RegionBSPTree2D.java

Rule Violation Line
LinguisticNaming Linguistics Antipattern - The transform method 'toConvexRecursive' should not return void linguistically 131145
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 265
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 271
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 317
AssignmentInOperand Avoid assignments in operands 341

org/apache/commons/geometry/euclidean/twod/ReverseRay.java

Rule Violation Line
InsufficientStringBufferDeclaration StringBuilder has been initialized with size 16, but has at least 25 characters appended. 150

org/apache/commons/geometry/euclidean/twod/Segment.java

Rule Violation Line
InsufficientStringBufferDeclaration StringBuilder has been initialized with size 16, but has at least 26 characters appended. 145
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 184

org/apache/commons/geometry/euclidean/twod/Vector2D.java

Rule Violation Line
ExcessivePublicCount This class has a bunch of public methods and attributes 17817
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 448
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 761
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 762
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 768
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 769
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 776
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 777

org/apache/commons/geometry/euclidean/twod/path/AbstractLinePathConnector.java

Rule Violation Line
CompareObjectsWithEquals Use equals() to compare object references. 126
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 258266

org/apache/commons/geometry/euclidean/twod/path/LinePath.java

Rule Violation Line
AvoidFieldNameMatchingMethodName Field EMPTY has the same name as a method 47
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 267
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 454
LinguisticNaming Linguistics Antipattern - The setter 'setPrecision' should not return any type except void linguistically 497501
CyclomaticComplexity The method 'build(boolean)' has a cyclomatic complexity of 10. 693732
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 725
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 726

org/apache/commons/geometry/euclidean/twod/rotation/Rotation2D.java

Rule Violation Line
AvoidFieldNameMatchingMethodName Field IDENTITY has the same name as a method 30

org/apache/commons/geometry/euclidean/twod/shape/Parallelogram.java

Rule Violation Line
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 161
LinguisticNaming Linguistics Antipattern - The setter 'setPosition' should not return any type except void linguistically 196199
LinguisticNaming Linguistics Antipattern - The setter 'setScale' should not return any type except void linguistically 207210
LinguisticNaming Linguistics Antipattern - The setter 'setScale' should not return any type except void linguistically 219221
LinguisticNaming Linguistics Antipattern - The setter 'setScale' should not return any type except void linguistically 228230
LinguisticNaming Linguistics Antipattern - The setter 'setRotation' should not return any type except void linguistically 236239
LinguisticNaming Linguistics Antipattern - The setter 'setXDirection' should not return any type except void linguistically 248251
LinguisticNaming Linguistics Antipattern - The setter 'setYDirection' should not return any type except void linguistically 260263

Priority 4

org/apache/commons/geometry/euclidean/oned/Vector1D.java

Rule Violation Line
ShortClassName Avoid short class names like Unit 327416
ShortClassName Avoid short class names like Sum 424483

org/apache/commons/geometry/euclidean/threed/Vector3D.java

Rule Violation Line
ShortClassName Avoid short class names like Unit 664821
ShortClassName Avoid short class names like Sum 829900

org/apache/commons/geometry/euclidean/threed/mesh/Mesh.java

Rule Violation Line
ShortClassName Avoid short class names like Mesh 30114
ShortClassName Avoid short class names like Face 78113

org/apache/commons/geometry/euclidean/threed/mesh/TriangleMesh.java

Rule Violation Line
ShortClassName Avoid short class names like Face 3353

org/apache/commons/geometry/euclidean/twod/Line.java

Rule Violation Line
ShortClassName Avoid short class names like Line 59545

org/apache/commons/geometry/euclidean/twod/Ray.java

Rule Violation Line
ShortClassName Avoid short class names like Ray 31211

org/apache/commons/geometry/euclidean/twod/Vector2D.java

Rule Violation Line
ShortClassName Avoid short class names like Unit 596743
ShortClassName Avoid short class names like Sum 751816

Files

org/apache/commons/geometry/euclidean/AbstractLinecastPoint.java

Rule Violation Priority Line
AbstractClassWithoutAbstractMethod This abstract class does not have any abstract methods 3 31130

org/apache/commons/geometry/euclidean/internal/AbstractPathConnector.java

Rule Violation Priority Line
CompareObjectsWithEquals Use equals() to compare object references. 3 194

org/apache/commons/geometry/euclidean/oned/Interval.java

Rule Violation Priority Line
CyclomaticComplexity The class 'Interval' has a total cyclomatic complexity of 93 (highest 15). 3 35510
AvoidFieldNameMatchingMethodName Field FULL has the same name as a method 3 37
CyclomaticComplexity The method 'split(Hyperplane)' has a cyclomatic complexity of 11. 3 297330
CyclomaticComplexity The method 'of(OrientedPoint, OrientedPoint)' has a cyclomatic complexity of 15. 3 409435
NPathComplexity The method 'of(OrientedPoint, OrientedPoint)' has an NPath complexity of 1200, current threshold is 200 3 409435
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 433
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 434

org/apache/commons/geometry/euclidean/oned/OrientedPoint.java

Rule Violation Priority Line
InsufficientStringBufferDeclaration StringBuilder has been initialized with size 16, but has at least 22 characters appended. 3 239

org/apache/commons/geometry/euclidean/oned/RegionBSPTree1D.java

Rule Violation Priority Line
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 245
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 253
CyclomaticComplexity The method 'visitNodeInterval(BiConsumer)' has a cyclomatic complexity of 10. 3 374399
AssignmentInOperand Avoid assignments in operands 3 382

org/apache/commons/geometry/euclidean/oned/Vector1D.java

Rule Violation Priority Line
ExcessivePublicCount This class has a bunch of public methods and attributes 3 17484
ShortClassName Avoid short class names like Unit 4 327416
ShortClassName Avoid short class names like Sum 4 424483
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 433
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 439
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 446

org/apache/commons/geometry/euclidean/threed/AbstractConvexPolygon3D.java

Rule Violation Priority Line
CyclomaticComplexity The method 'split(Hyperplane)' has a cyclomatic complexity of 14. 3 296382
CognitiveComplexity The method 'split(Hyperplane)' has a cognitive complexity of 20, current threshold is 15 3 296382
InsufficientStringBufferDeclaration StringBuilder has been initialized with size 16, but has at least 22 characters appended. 3 441

org/apache/commons/geometry/euclidean/threed/AbstractEmbeddedRegionPlaneSubset.java

Rule Violation Priority Line
InsufficientStringBufferDeclaration StringBuilder has been initialized with size 16, but has at least 27 characters appended. 3 107

org/apache/commons/geometry/euclidean/threed/Bounds3D.java

Rule Violation Priority Line
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 184
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 287

org/apache/commons/geometry/euclidean/threed/ConvexVolume.java

Rule Violation Priority Line
AvoidFieldNameMatchingMethodName Field FULL has the same name as a method 3 37

org/apache/commons/geometry/euclidean/threed/EmbeddingPlane.java

Rule Violation Priority Line
InsufficientStringBufferDeclaration StringBuilder has been initialized with size 16, but has at least 25 characters appended. 3 239

org/apache/commons/geometry/euclidean/threed/Plane.java

Rule Violation Priority Line
InsufficientStringBufferDeclaration StringBuilder has been initialized with size 16, but has at least 20 characters appended. 3 390
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 414
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 419
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 424

org/apache/commons/geometry/euclidean/threed/RegionBSPTree3D.java

Rule Violation Priority Line
LinguisticNaming Linguistics Antipattern - The transform method 'toConvexRecursive' should not return void linguistically 3 108123
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 136
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 232
AssignmentInOperand Avoid assignments in operands 3 256

org/apache/commons/geometry/euclidean/threed/Vector3D.java

Rule Violation Priority Line
ExcessivePublicCount This class has a bunch of public methods and attributes 3 17901
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 358
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 361
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 364
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 512
ShortClassName Avoid short class names like Unit 4 664821
ShortClassName Avoid short class names like Sum 4 829900
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 841
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 842
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 843
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 849
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 850
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 851
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 858
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 859
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 860

org/apache/commons/geometry/euclidean/threed/line/EmbeddedTreeLineSubset3D.java

Rule Violation Priority Line
InsufficientStringBufferDeclaration StringBuilder has been initialized with size 16, but has at least 41 characters appended. 3 144
ConsecutiveLiteralAppends StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. 3 146

org/apache/commons/geometry/euclidean/threed/line/Ray3D.java

Rule Violation Priority Line
InsufficientStringBufferDeclaration StringBuilder has been initialized with size 16, but has at least 27 characters appended. 3 148

org/apache/commons/geometry/euclidean/threed/line/ReverseRay3D.java

Rule Violation Priority Line
InsufficientStringBufferDeclaration StringBuilder has been initialized with size 16, but has at least 25 characters appended. 3 142

org/apache/commons/geometry/euclidean/threed/line/Segment3D.java

Rule Violation Priority Line
InsufficientStringBufferDeclaration StringBuilder has been initialized with size 16, but has at least 26 characters appended. 3 139

org/apache/commons/geometry/euclidean/threed/mesh/Mesh.java

Rule Violation Priority Line
ShortClassName Avoid short class names like Mesh 4 30114
ShortClassName Avoid short class names like Face 4 78113

org/apache/commons/geometry/euclidean/threed/mesh/SimpleTriangleMesh.java

Rule Violation Priority Line
ExcessivePublicCount This class has a bunch of public methods and attributes 3 17779
AvoidFieldNameMatchingMethodName Field vertices has the same name as a method 3 58
AvoidFieldNameMatchingMethodName Field faces has the same name as a method 3 61
InsufficientStringBufferDeclaration StringBuilder has been initialized with size 16, but has at least 38 characters appended. 3 200
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 230
ArrayIsStoredDirectly The user-supplied array 'vertexIndices' is stored directly. 3 295
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 324
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 330
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 336
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 346
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 356
InsufficientStringBufferDeclaration StringBuilder has been initialized with size 16, but has at least 38 characters appended. 3 362
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 398
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 3 417
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 3 423
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 667671

org/apache/commons/geometry/euclidean/threed/mesh/TriangleMesh.java

Rule Violation Priority Line
ShortClassName Avoid short class names like Face 4 3353

org/apache/commons/geometry/euclidean/threed/rotation/AxisAngleSequence.java

Rule Violation Priority Line
InsufficientStringBufferDeclaration StringBuilder has been initialized with size 16, but has at least 41 characters appended. 3 167

org/apache/commons/geometry/euclidean/threed/rotation/QuaternionRotation.java

Rule Violation Priority Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 403
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 472
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 589

org/apache/commons/geometry/euclidean/threed/shape/Parallelepiped.java

Rule Violation Priority Line
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 178
LinguisticNaming Linguistics Antipattern - The setter 'setPosition' should not return any type except void linguistically 3 254257
LinguisticNaming Linguistics Antipattern - The setter 'setScale' should not return any type except void linguistically 3 264267
LinguisticNaming Linguistics Antipattern - The setter 'setScale' should not return any type except void linguistically 3 276278
LinguisticNaming Linguistics Antipattern - The setter 'setScale' should not return any type except void linguistically 3 285287
LinguisticNaming Linguistics Antipattern - The setter 'setRotation' should not return any type except void linguistically 3 293296

org/apache/commons/geometry/euclidean/twod/Bounds2D.java

Rule Violation Priority Line
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 176
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 268

org/apache/commons/geometry/euclidean/twod/ConvexArea.java

Rule Violation Priority Line
AvoidFieldNameMatchingMethodName Field FULL has the same name as a method 3 44
CyclomaticComplexity The method 'convexPolygonFromPath(LinePath)' has a cyclomatic complexity of 11. 3 221271
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 228

org/apache/commons/geometry/euclidean/twod/EmbeddedTreeLineSubset.java

Rule Violation Priority Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 173
InsufficientStringBufferDeclaration StringBuilder has been initialized with size 16, but has at least 41 characters appended. 3 233
ConsecutiveLiteralAppends StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. 3 235

org/apache/commons/geometry/euclidean/twod/Line.java

Rule Violation Priority Line
ShortClassName Avoid short class names like Line 4 59545

org/apache/commons/geometry/euclidean/twod/Ray.java

Rule Violation Priority Line
ShortClassName Avoid short class names like Ray 4 31211
InsufficientStringBufferDeclaration StringBuilder has been initialized with size 16, but has at least 27 characters appended. 3 155

org/apache/commons/geometry/euclidean/twod/RegionBSPTree2D.java

Rule Violation Priority Line
LinguisticNaming Linguistics Antipattern - The transform method 'toConvexRecursive' should not return void linguistically 3 131145
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 265
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 271
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 317
AssignmentInOperand Avoid assignments in operands 3 341

org/apache/commons/geometry/euclidean/twod/ReverseRay.java

Rule Violation Priority Line
InsufficientStringBufferDeclaration StringBuilder has been initialized with size 16, but has at least 25 characters appended. 3 150

org/apache/commons/geometry/euclidean/twod/Segment.java

Rule Violation Priority Line
InsufficientStringBufferDeclaration StringBuilder has been initialized with size 16, but has at least 26 characters appended. 3 145
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 184

org/apache/commons/geometry/euclidean/twod/Vector2D.java

Rule Violation Priority Line
ExcessivePublicCount This class has a bunch of public methods and attributes 3 17817
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 448
ShortClassName Avoid short class names like Unit 4 596743
ShortClassName Avoid short class names like Sum 4 751816
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 761
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 762
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 768
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 769
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 776
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 777

org/apache/commons/geometry/euclidean/twod/path/AbstractLinePathConnector.java

Rule Violation Priority Line
CompareObjectsWithEquals Use equals() to compare object references. 3 126
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 258266

org/apache/commons/geometry/euclidean/twod/path/LinePath.java

Rule Violation Priority Line
AvoidFieldNameMatchingMethodName Field EMPTY has the same name as a method 3 47
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 267
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 454
LinguisticNaming Linguistics Antipattern - The setter 'setPrecision' should not return any type except void linguistically 3 497501
CyclomaticComplexity The method 'build(boolean)' has a cyclomatic complexity of 10. 3 693732
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 725
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 726

org/apache/commons/geometry/euclidean/twod/rotation/Rotation2D.java

Rule Violation Priority Line
AvoidFieldNameMatchingMethodName Field IDENTITY has the same name as a method 3 30

org/apache/commons/geometry/euclidean/twod/shape/Parallelogram.java

Rule Violation Priority Line
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 161
LinguisticNaming Linguistics Antipattern - The setter 'setPosition' should not return any type except void linguistically 3 196199
LinguisticNaming Linguistics Antipattern - The setter 'setScale' should not return any type except void linguistically 3 207210
LinguisticNaming Linguistics Antipattern - The setter 'setScale' should not return any type except void linguistically 3 219221
LinguisticNaming Linguistics Antipattern - The setter 'setScale' should not return any type except void linguistically 3 228230
LinguisticNaming Linguistics Antipattern - The setter 'setRotation' should not return any type except void linguistically 3 236239
LinguisticNaming Linguistics Antipattern - The setter 'setXDirection' should not return any type except void linguistically 3 248251
LinguisticNaming Linguistics Antipattern - The setter 'setYDirection' should not return any type except void linguistically 3 260263