Apache Commons logo Apache Commons Statistics

PMD Results

The following document contains the results of PMD 7.3.0.

Violations By Priority

Priority 1

org/apache/commons/statistics/examples/distribution/DistributionUtils.java
Rule Violation Line
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 617
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 642

Priority 2

org/apache/commons/statistics/examples/distribution/DistributionUtils.java
Rule Violation Line
AvoidReassigningParameters Avoid reassigning parameters such as 'array' 733
AvoidReassigningParameters Avoid reassigning parameters such as 'array' 751

Priority 3

org/apache/commons/statistics/examples/distribution/AbstractContinuousDistributionCommand.java
Rule Violation Line
AvoidLiteralsInIfCondition Avoid using literals in if statements 53
org/apache/commons/statistics/examples/distribution/AbstractDiscreteDistributionCommand.java
Rule Violation Line
AvoidLiteralsInIfCondition Avoid using literals in if statements 53
org/apache/commons/statistics/examples/distribution/BetaCommand.java
Rule Violation Line
ImmutableField Field 'params' may be declared final 47
AccessorMethodGeneration Consider giving this member package visibility to access it from BetaCommand.BaseCommand without a synthetic accessor method 56
ImmutableField Field 'alpha' may be declared final 56
AccessorMethodGeneration Consider giving this member package visibility to access it from BetaCommand.BaseCommand without a synthetic accessor method 63
ImmutableField Field 'beta' may be declared final 63
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 69
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 85
ImmutableField Field 'distributionOptions' may be declared final 98
ImmutableField Field 'distributionOptions' may be declared final 110
org/apache/commons/statistics/examples/distribution/BinomialCommand.java
Rule Violation Line
ImmutableField Field 'params' may be declared final 48
AccessorMethodGeneration Consider giving this member package visibility to access it from BinomialCommand.BaseCommand without a synthetic accessor method 57
ImmutableField Field 'trials' may be declared final 57
AccessorMethodGeneration Consider giving this member package visibility to access it from BinomialCommand.BaseCommand without a synthetic accessor method 64
ImmutableField Field 'p' may be declared final 64
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 70
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 86
ImmutableField Field 'distributionOptions' may be declared final 99
ImmutableField Field 'distributionOptions' may be declared final 111
org/apache/commons/statistics/examples/distribution/CauchyCommand.java
Rule Violation Line
ImmutableField Field 'params' may be declared final 47
AccessorMethodGeneration Consider giving this member package visibility to access it from CauchyCommand.BaseCommand without a synthetic accessor method 56
ImmutableField Field 'location' may be declared final 56
AccessorMethodGeneration Consider giving this member package visibility to access it from CauchyCommand.BaseCommand without a synthetic accessor method 63
ImmutableField Field 'scale' may be declared final 63
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 69
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 85
ImmutableField Field 'distributionOptions' may be declared final 98
ImmutableField Field 'distributionOptions' may be declared final 110
org/apache/commons/statistics/examples/distribution/ChiSquaredCommand.java
Rule Violation Line
ImmutableField Field 'params' may be declared final 48
AccessorMethodGeneration Consider giving this member package visibility to access it from ChiSquaredCommand.BaseCommand without a synthetic accessor method 57
ImmutableField Field 'df' may be declared final 57
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 63
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 72
ImmutableField Field 'distributionOptions' may be declared final 85
ImmutableField Field 'distributionOptions' may be declared final 97
org/apache/commons/statistics/examples/distribution/Distribution.java
Rule Violation Line
AvoidFieldNameMatchingTypeName It is somewhat confusing to have a field name matching the declaring class name 26
org/apache/commons/statistics/examples/distribution/DistributionUtils.java
Rule Violation Line
GodClass Possible God Class (WMC=86, ATFD=64, TCC=2.536%) 34
CyclomaticComplexity The class 'DistributionUtils' has a total cyclomatic complexity of 86 (highest 7). 34
CognitiveComplexity The method 'check(List<Distribution<ContinuousDistribution>>, ContinuousDistributionOptions)' has a cognitive complexity of 34, current threshold is 15 207
NPathComplexity The method 'check(List<Distribution<ContinuousDistribution>>, ContinuousDistributionOptions)' has an NPath complexity of 1585, current threshold is 200 207
LogicInversion Use opposite operator instead of the logic complement operator. 219
LogicInversion Use opposite operator instead of the logic complement operator. 222
LogicInversion Use opposite operator instead of the logic complement operator. 225
LogicInversion Use opposite operator instead of the logic complement operator. 228
LogicInversion Use opposite operator instead of the logic complement operator. 236
CognitiveComplexity The method 'check(List<Distribution<DiscreteDistribution>>, DiscreteDistributionOptions)' has a cognitive complexity of 32, current threshold is 15 281
NPathComplexity The method 'check(List<Distribution<DiscreteDistribution>>, DiscreteDistributionOptions)' has an NPath complexity of 913, current threshold is 200 281
LogicInversion Use opposite operator instead of the logic complement operator. 293
LogicInversion Use opposite operator instead of the logic complement operator. 296
LogicInversion Use opposite operator instead of the logic complement operator. 299
LogicInversion Use opposite operator instead of the logic complement operator. 302
LogicInversion Use opposite operator instead of the logic complement operator. 310
LocalVariableCouldBeFinal Local variable 'f' could be declared final 405
LocalVariableCouldBeFinal Local variable 'f' could be declared final 445
LocalVariableCouldBeFinal Local variable 'f' could be declared final 485
LocalVariableCouldBeFinal Local variable 'f' could be declared final 519
org/apache/commons/statistics/examples/distribution/ExpCommand.java
Rule Violation Line
ImmutableField Field 'params' may be declared final 47
AccessorMethodGeneration Consider giving this member package visibility to access it from ExpCommand.BaseCommand without a synthetic accessor method 56
ImmutableField Field 'mean' may be declared final 56
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 62
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 71
ImmutableField Field 'distributionOptions' may be declared final 84
ImmutableField Field 'distributionOptions' may be declared final 96
org/apache/commons/statistics/examples/distribution/FCommand.java
Rule Violation Line
ImmutableField Field 'params' may be declared final 47
AccessorMethodGeneration Consider giving this member package visibility to access it from FCommand.BaseCommand without a synthetic accessor method 56
ImmutableField Field 'df1' may be declared final 56
AccessorMethodGeneration Consider giving this member package visibility to access it from FCommand.BaseCommand without a synthetic accessor method 63
ImmutableField Field 'df2' may be declared final 63
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 69
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 85
ImmutableField Field 'distributionOptions' may be declared final 98
ImmutableField Field 'distributionOptions' may be declared final 110
org/apache/commons/statistics/examples/distribution/FoldedNormalCommand.java
Rule Violation Line
ImmutableField Field 'params' may be declared final 50
AccessorMethodGeneration Consider giving this member package visibility to access it from FoldedNormalCommand.BaseCommand without a synthetic accessor method 59
ImmutableField Field 'mu' may be declared final 59
AccessorMethodGeneration Consider giving this member package visibility to access it from FoldedNormalCommand.BaseCommand without a synthetic accessor method 66
ImmutableField Field 'sigma' may be declared final 66
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 72
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 88
ImmutableField Field 'distributionOptions' may be declared final 101
ImmutableField Field 'distributionOptions' may be declared final 113
org/apache/commons/statistics/examples/distribution/GammaCommand.java
Rule Violation Line
ImmutableField Field 'params' may be declared final 48
AccessorMethodGeneration Consider giving this member package visibility to access it from GammaCommand.BaseCommand without a synthetic accessor method 57
ImmutableField Field 'shape' may be declared final 57
AccessorMethodGeneration Consider giving this member package visibility to access it from GammaCommand.BaseCommand without a synthetic accessor method 64
ImmutableField Field 'scale' may be declared final 64
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 70
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 86
ImmutableField Field 'distributionOptions' may be declared final 99
ImmutableField Field 'distributionOptions' may be declared final 111
org/apache/commons/statistics/examples/distribution/GeometricCommand.java
Rule Violation Line
ImmutableField Field 'params' may be declared final 48
AccessorMethodGeneration Consider giving this member package visibility to access it from GeometricCommand.BaseCommand without a synthetic accessor method 57
ImmutableField Field 'p' may be declared final 57
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 63
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 72
ImmutableField Field 'distributionOptions' may be declared final 85
ImmutableField Field 'distributionOptions' may be declared final 97
org/apache/commons/statistics/examples/distribution/GumbelCommand.java
Rule Violation Line
ImmutableField Field 'params' may be declared final 47
AccessorMethodGeneration Consider giving this member package visibility to access it from GumbelCommand.BaseCommand without a synthetic accessor method 56
ImmutableField Field 'mu' may be declared final 56
AccessorMethodGeneration Consider giving this member package visibility to access it from GumbelCommand.BaseCommand without a synthetic accessor method 63
ImmutableField Field 'beta' may be declared final 63
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 69
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 85
ImmutableField Field 'distributionOptions' may be declared final 98
ImmutableField Field 'distributionOptions' may be declared final 110
org/apache/commons/statistics/examples/distribution/HypergeometricCommand.java
Rule Violation Line
ImmutableField Field 'params' may be declared final 48
AccessorMethodGeneration Consider giving this member package visibility to access it from HypergeometricCommand.BaseCommand without a synthetic accessor method 58
ImmutableField Field 'popSize' may be declared final 58
AccessorMethodGeneration Consider giving this member package visibility to access it from HypergeometricCommand.BaseCommand without a synthetic accessor method 66
ImmutableField Field 'successes' may be declared final 66
AccessorMethodGeneration Consider giving this member package visibility to access it from HypergeometricCommand.BaseCommand without a synthetic accessor method 73
ImmutableField Field 'n' may be declared final 73
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 79
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 97
ImmutableField Field 'distributionOptions' may be declared final 110
ImmutableField Field 'distributionOptions' may be declared final 122
org/apache/commons/statistics/examples/distribution/LaplaceCommand.java
Rule Violation Line
ImmutableField Field 'params' may be declared final 47
AccessorMethodGeneration Consider giving this member package visibility to access it from LaplaceCommand.BaseCommand without a synthetic accessor method 56
ImmutableField Field 'mu' may be declared final 56
AccessorMethodGeneration Consider giving this member package visibility to access it from LaplaceCommand.BaseCommand without a synthetic accessor method 63
ImmutableField Field 'beta' may be declared final 63
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 69
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 85
ImmutableField Field 'distributionOptions' may be declared final 98
ImmutableField Field 'distributionOptions' may be declared final 110
org/apache/commons/statistics/examples/distribution/LevyCommand.java
Rule Violation Line
ImmutableField Field 'params' may be declared final 47
AccessorMethodGeneration Consider giving this member package visibility to access it from LevyCommand.BaseCommand without a synthetic accessor method 56
ImmutableField Field 'mu' may be declared final 56
AccessorMethodGeneration Consider giving this member package visibility to access it from LevyCommand.BaseCommand without a synthetic accessor method 63
ImmutableField Field 'c' may be declared final 63
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 69
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 85
ImmutableField Field 'distributionOptions' may be declared final 98
ImmutableField Field 'distributionOptions' may be declared final 110
org/apache/commons/statistics/examples/distribution/LogNormalCommand.java
Rule Violation Line
ImmutableField Field 'params' may be declared final 48
AccessorMethodGeneration Consider giving this member package visibility to access it from LogNormalCommand.BaseCommand without a synthetic accessor method 57
ImmutableField Field 'mu' may be declared final 57
AccessorMethodGeneration Consider giving this member package visibility to access it from LogNormalCommand.BaseCommand without a synthetic accessor method 64
ImmutableField Field 'sigma' may be declared final 64
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 70
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 86
ImmutableField Field 'distributionOptions' may be declared final 99
ImmutableField Field 'distributionOptions' may be declared final 111
org/apache/commons/statistics/examples/distribution/LogUniformCommand.java
Rule Violation Line
ImmutableField Field 'params' may be declared final 48
AccessorMethodGeneration Consider giving this member package visibility to access it from LogUniformCommand.BaseCommand without a synthetic accessor method 58
ImmutableField Field 'lower' may be declared final 58
AccessorMethodGeneration Consider giving this member package visibility to access it from LogUniformCommand.BaseCommand without a synthetic accessor method 66
ImmutableField Field 'upper' may be declared final 66
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 72
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 88
ImmutableField Field 'distributionOptions' may be declared final 101
ImmutableField Field 'distributionOptions' may be declared final 113
org/apache/commons/statistics/examples/distribution/LogisticCommand.java
Rule Violation Line
ImmutableField Field 'params' may be declared final 47
AccessorMethodGeneration Consider giving this member package visibility to access it from LogisticCommand.BaseCommand without a synthetic accessor method 56
ImmutableField Field 'mu' may be declared final 56
AccessorMethodGeneration Consider giving this member package visibility to access it from LogisticCommand.BaseCommand without a synthetic accessor method 63
ImmutableField Field 's' may be declared final 63
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 69
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 85
ImmutableField Field 'distributionOptions' may be declared final 98
ImmutableField Field 'distributionOptions' may be declared final 110
org/apache/commons/statistics/examples/distribution/ManifestVersionProvider.java
Rule Violation Line
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 47
LooseCoupling Avoid using implementation types like 'Attributes'; use the interface instead 49
LooseCoupling Avoid using implementation types like 'Attributes'; use the interface instead 67
LooseCoupling Avoid using implementation types like 'Attributes'; use the interface instead 78
org/apache/commons/statistics/examples/distribution/NakagamiCommand.java
Rule Violation Line
ImmutableField Field 'params' may be declared final 47
AccessorMethodGeneration Consider giving this member package visibility to access it from NakagamiCommand.BaseCommand without a synthetic accessor method 56
ImmutableField Field 'mu' may be declared final 56
AccessorMethodGeneration Consider giving this member package visibility to access it from NakagamiCommand.BaseCommand without a synthetic accessor method 63
ImmutableField Field 'omega' may be declared final 63
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 69
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 85
ImmutableField Field 'distributionOptions' may be declared final 98
ImmutableField Field 'distributionOptions' may be declared final 110
org/apache/commons/statistics/examples/distribution/NormalCommand.java
Rule Violation Line
ImmutableField Field 'params' may be declared final 48
AccessorMethodGeneration Consider giving this member package visibility to access it from NormalCommand.BaseCommand without a synthetic accessor method 57
ImmutableField Field 'mu' may be declared final 57
AccessorMethodGeneration Consider giving this member package visibility to access it from NormalCommand.BaseCommand without a synthetic accessor method 65
ImmutableField Field 'sigma' may be declared final 65
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 71
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 87
ImmutableField Field 'distributionOptions' may be declared final 100
ImmutableField Field 'distributionOptions' may be declared final 112
org/apache/commons/statistics/examples/distribution/ParetoCommand.java
Rule Violation Line
ImmutableField Field 'params' may be declared final 47
AccessorMethodGeneration Consider giving this member package visibility to access it from ParetoCommand.BaseCommand without a synthetic accessor method 57
ImmutableField Field 'scale' may be declared final 57
AccessorMethodGeneration Consider giving this member package visibility to access it from ParetoCommand.BaseCommand without a synthetic accessor method 64
ImmutableField Field 'shape' may be declared final 64
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 70
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 86
ImmutableField Field 'distributionOptions' may be declared final 99
ImmutableField Field 'distributionOptions' may be declared final 111
org/apache/commons/statistics/examples/distribution/PascalCommand.java
Rule Violation Line
ImmutableField Field 'params' may be declared final 48
AccessorMethodGeneration Consider giving this member package visibility to access it from PascalCommand.BaseCommand without a synthetic accessor method 57
ImmutableField Field 'r' may be declared final 57
AccessorMethodGeneration Consider giving this member package visibility to access it from PascalCommand.BaseCommand without a synthetic accessor method 67
ImmutableField Field 'p' may be declared final 67
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 73
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 89
ImmutableField Field 'distributionOptions' may be declared final 102
ImmutableField Field 'distributionOptions' may be declared final 114
org/apache/commons/statistics/examples/distribution/PoissonCommand.java
Rule Violation Line
ImmutableField Field 'params' may be declared final 48
AccessorMethodGeneration Consider giving this member package visibility to access it from PoissonCommand.BaseCommand without a synthetic accessor method 57
ImmutableField Field 'mean' may be declared final 57
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 63
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 72
ImmutableField Field 'distributionOptions' may be declared final 85
ImmutableField Field 'distributionOptions' may be declared final 97
org/apache/commons/statistics/examples/distribution/TCommand.java
Rule Violation Line
ImmutableField Field 'params' may be declared final 47
AccessorMethodGeneration Consider giving this member package visibility to access it from TCommand.BaseCommand without a synthetic accessor method 56
ImmutableField Field 'df' may be declared final 56
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 62
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 71
ImmutableField Field 'distributionOptions' may be declared final 84
ImmutableField Field 'distributionOptions' may be declared final 96
org/apache/commons/statistics/examples/distribution/TrapezoidalCommand.java
Rule Violation Line
ImmutableField Field 'params' may be declared final 48
AvoidDuplicateLiterals The String literal "1..*" appears 4 times in this file; the first occurrence is on line 55 55
AccessorMethodGeneration Consider giving this member package visibility to access it from TrapezoidalCommand.BaseCommand without a synthetic accessor method 58
ImmutableField Field 'lower' may be declared final 58
AccessorMethodGeneration Consider giving this member package visibility to access it from TrapezoidalCommand.BaseCommand without a synthetic accessor method 66
ImmutableField Field 'start' may be declared final 66
AccessorMethodGeneration Consider giving this member package visibility to access it from TrapezoidalCommand.BaseCommand without a synthetic accessor method 74
ImmutableField Field 'end' may be declared final 74
AccessorMethodGeneration Consider giving this member package visibility to access it from TrapezoidalCommand.BaseCommand without a synthetic accessor method 82
ImmutableField Field 'upper' may be declared final 82
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 88
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 108
ImmutableField Field 'distributionOptions' may be declared final 121
ImmutableField Field 'distributionOptions' may be declared final 133
org/apache/commons/statistics/examples/distribution/TriangularCommand.java
Rule Violation Line
ImmutableField Field 'params' may be declared final 48
AccessorMethodGeneration Consider giving this member package visibility to access it from TriangularCommand.BaseCommand without a synthetic accessor method 58
ImmutableField Field 'lower' may be declared final 58
AccessorMethodGeneration Consider giving this member package visibility to access it from TriangularCommand.BaseCommand without a synthetic accessor method 66
ImmutableField Field 'mode' may be declared final 66
AccessorMethodGeneration Consider giving this member package visibility to access it from TriangularCommand.BaseCommand without a synthetic accessor method 74
ImmutableField Field 'upper' may be declared final 74
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 80
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 98
ImmutableField Field 'distributionOptions' may be declared final 111
ImmutableField Field 'distributionOptions' may be declared final 123
org/apache/commons/statistics/examples/distribution/TruncatedNormalCommand.java
Rule Violation Line
ImmutableField Field 'params' may be declared final 53
AvoidDuplicateLiterals The String literal "1..*" appears 4 times in this file; the first occurrence is on line 59 59
AccessorMethodGeneration Consider giving this member package visibility to access it from TruncatedNormalCommand.BaseCommand without a synthetic accessor method 62
ImmutableField Field 'mu' may be declared final 62
AccessorMethodGeneration Consider giving this member package visibility to access it from TruncatedNormalCommand.BaseCommand without a synthetic accessor method 69
ImmutableField Field 'sigma' may be declared final 69
AccessorMethodGeneration Consider giving this member package visibility to access it from TruncatedNormalCommand.BaseCommand without a synthetic accessor method 76
ImmutableField Field 'lower' may be declared final 76
AccessorMethodGeneration Consider giving this member package visibility to access it from TruncatedNormalCommand.BaseCommand without a synthetic accessor method 83
ImmutableField Field 'upper' may be declared final 83
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 89
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 109
ImmutableField Field 'distributionOptions' may be declared final 123
ImmutableField Field 'distributionOptions' may be declared final 135
org/apache/commons/statistics/examples/distribution/UniformContinuousCommand.java
Rule Violation Line
ImmutableField Field 'params' may be declared final 48
AccessorMethodGeneration Consider giving this member package visibility to access it from UniformContinuousCommand.BaseCommand without a synthetic accessor method 58
ImmutableField Field 'lower' may be declared final 58
AccessorMethodGeneration Consider giving this member package visibility to access it from UniformContinuousCommand.BaseCommand without a synthetic accessor method 66
ImmutableField Field 'upper' may be declared final 66
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 72
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 88
ImmutableField Field 'distributionOptions' may be declared final 101
ImmutableField Field 'distributionOptions' may be declared final 113
org/apache/commons/statistics/examples/distribution/UniformDiscreteCommand.java
Rule Violation Line
ImmutableField Field 'params' may be declared final 47
AccessorMethodGeneration Consider giving this member package visibility to access it from UniformDiscreteCommand.BaseCommand without a synthetic accessor method 57
ImmutableField Field 'lower' may be declared final 57
AccessorMethodGeneration Consider giving this member package visibility to access it from UniformDiscreteCommand.BaseCommand without a synthetic accessor method 65
ImmutableField Field 'upper' may be declared final 65
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 71
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 87
ImmutableField Field 'distributionOptions' may be declared final 100
ImmutableField Field 'distributionOptions' may be declared final 112
org/apache/commons/statistics/examples/distribution/WeibullCommand.java
Rule Violation Line
ImmutableField Field 'params' may be declared final 48
AccessorMethodGeneration Consider giving this member package visibility to access it from WeibullCommand.BaseCommand without a synthetic accessor method 57
ImmutableField Field 'alpha' may be declared final 57
AccessorMethodGeneration Consider giving this member package visibility to access it from WeibullCommand.BaseCommand without a synthetic accessor method 64
ImmutableField Field 'beta' may be declared final 64
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 70
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 86
ImmutableField Field 'distributionOptions' may be declared final 99
ImmutableField Field 'distributionOptions' may be declared final 111
org/apache/commons/statistics/examples/distribution/ZipfCommand.java
Rule Violation Line
ImmutableField Field 'params' may be declared final 47
AccessorMethodGeneration Consider giving this member package visibility to access it from ZipfCommand.BaseCommand without a synthetic accessor method 56
ImmutableField Field 'n' may be declared final 56
AccessorMethodGeneration Consider giving this member package visibility to access it from ZipfCommand.BaseCommand without a synthetic accessor method 63
ImmutableField Field 'e' may be declared final 63
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 69
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 85
ImmutableField Field 'distributionOptions' may be declared final 98
ImmutableField Field 'distributionOptions' may be declared final 110

Priority 4

org/apache/commons/statistics/examples/distribution/BetaCommand.java
Rule Violation Line
ShortClassName Avoid short class names like PDF 127
ShortClassName Avoid short class names like LPDF 132
ShortClassName Avoid short class names like CDF 137
ShortClassName Avoid short class names like SF 142
ShortClassName Avoid short class names like ICDF 147
ShortClassName Avoid short class names like ISF 152
org/apache/commons/statistics/examples/distribution/BinomialCommand.java
Rule Violation Line
ShortClassName Avoid short class names like PMF 129
ShortClassName Avoid short class names like LPMF 135
ShortClassName Avoid short class names like CDF 140
ShortClassName Avoid short class names like SF 145
ShortClassName Avoid short class names like ICDF 150
ShortClassName Avoid short class names like ISF 155
org/apache/commons/statistics/examples/distribution/CauchyCommand.java
Rule Violation Line
ShortClassName Avoid short class names like PDF 127
ShortClassName Avoid short class names like LPDF 132
ShortClassName Avoid short class names like CDF 137
ShortClassName Avoid short class names like SF 142
ShortClassName Avoid short class names like ICDF 147
ShortClassName Avoid short class names like ISF 152
org/apache/commons/statistics/examples/distribution/ChiSquaredCommand.java
Rule Violation Line
ShortClassName Avoid short class names like PDF 114
ShortClassName Avoid short class names like LPDF 119
ShortClassName Avoid short class names like CDF 124
ShortClassName Avoid short class names like SF 129
ShortClassName Avoid short class names like ICDF 134
ShortClassName Avoid short class names like ISF 139
org/apache/commons/statistics/examples/distribution/ExpCommand.java
Rule Violation Line
ShortClassName Avoid short class names like PDF 113
ShortClassName Avoid short class names like LPDF 118
ShortClassName Avoid short class names like CDF 123
ShortClassName Avoid short class names like SF 128
ShortClassName Avoid short class names like ICDF 133
ShortClassName Avoid short class names like ISF 138
org/apache/commons/statistics/examples/distribution/FCommand.java
Rule Violation Line
ShortClassName Avoid short class names like PDF 127
ShortClassName Avoid short class names like LPDF 132
ShortClassName Avoid short class names like CDF 137
ShortClassName Avoid short class names like SF 142
ShortClassName Avoid short class names like ICDF 147
ShortClassName Avoid short class names like ISF 152
org/apache/commons/statistics/examples/distribution/FoldedNormalCommand.java
Rule Violation Line
ShortClassName Avoid short class names like PDF 130
ShortClassName Avoid short class names like LPDF 135
ShortClassName Avoid short class names like CDF 140
ShortClassName Avoid short class names like SF 145
ShortClassName Avoid short class names like ICDF 150
ShortClassName Avoid short class names like ISF 155
org/apache/commons/statistics/examples/distribution/GammaCommand.java
Rule Violation Line
ShortClassName Avoid short class names like PDF 128
ShortClassName Avoid short class names like LPDF 133
ShortClassName Avoid short class names like CDF 138
ShortClassName Avoid short class names like SF 143
ShortClassName Avoid short class names like ICDF 148
ShortClassName Avoid short class names like ISF 153
org/apache/commons/statistics/examples/distribution/GeometricCommand.java
Rule Violation Line
ShortClassName Avoid short class names like PMF 115
ShortClassName Avoid short class names like LPMF 121
ShortClassName Avoid short class names like CDF 126
ShortClassName Avoid short class names like SF 131
ShortClassName Avoid short class names like ICDF 136
ShortClassName Avoid short class names like ISF 141
org/apache/commons/statistics/examples/distribution/GumbelCommand.java
Rule Violation Line
ShortClassName Avoid short class names like PDF 127
ShortClassName Avoid short class names like LPDF 132
ShortClassName Avoid short class names like CDF 137
ShortClassName Avoid short class names like SF 142
ShortClassName Avoid short class names like ICDF 147
ShortClassName Avoid short class names like ISF 152
org/apache/commons/statistics/examples/distribution/HypergeometricCommand.java
Rule Violation Line
ShortClassName Avoid short class names like PMF 140
ShortClassName Avoid short class names like LPMF 146
ShortClassName Avoid short class names like CDF 151
ShortClassName Avoid short class names like SF 156
ShortClassName Avoid short class names like ICDF 161
ShortClassName Avoid short class names like ISF 166
org/apache/commons/statistics/examples/distribution/LaplaceCommand.java
Rule Violation Line
ShortClassName Avoid short class names like PDF 127
ShortClassName Avoid short class names like LPDF 132
ShortClassName Avoid short class names like CDF 137
ShortClassName Avoid short class names like SF 142
ShortClassName Avoid short class names like ICDF 147
ShortClassName Avoid short class names like ISF 152
org/apache/commons/statistics/examples/distribution/LevyCommand.java
Rule Violation Line
ShortClassName Avoid short class names like PDF 127
ShortClassName Avoid short class names like LPDF 132
ShortClassName Avoid short class names like CDF 137
ShortClassName Avoid short class names like SF 142
ShortClassName Avoid short class names like ICDF 147
ShortClassName Avoid short class names like ISF 152
org/apache/commons/statistics/examples/distribution/LogNormalCommand.java
Rule Violation Line
ShortClassName Avoid short class names like PDF 128
ShortClassName Avoid short class names like LPDF 133
ShortClassName Avoid short class names like CDF 138
ShortClassName Avoid short class names like SF 143
ShortClassName Avoid short class names like ICDF 148
ShortClassName Avoid short class names like ISF 153
org/apache/commons/statistics/examples/distribution/LogUniformCommand.java
Rule Violation Line
ShortClassName Avoid short class names like PDF 130
ShortClassName Avoid short class names like LPDF 135
ShortClassName Avoid short class names like CDF 140
ShortClassName Avoid short class names like SF 145
ShortClassName Avoid short class names like ICDF 150
ShortClassName Avoid short class names like ISF 155
org/apache/commons/statistics/examples/distribution/LogisticCommand.java
Rule Violation Line
ShortClassName Avoid short class names like PDF 127
ShortClassName Avoid short class names like LPDF 132
ShortClassName Avoid short class names like CDF 137
ShortClassName Avoid short class names like SF 142
ShortClassName Avoid short class names like ICDF 147
ShortClassName Avoid short class names like ISF 152
org/apache/commons/statistics/examples/distribution/NakagamiCommand.java
Rule Violation Line
ShortClassName Avoid short class names like PDF 127
ShortClassName Avoid short class names like LPDF 132
ShortClassName Avoid short class names like CDF 137
ShortClassName Avoid short class names like SF 142
ShortClassName Avoid short class names like ICDF 147
ShortClassName Avoid short class names like ISF 152
org/apache/commons/statistics/examples/distribution/NormalCommand.java
Rule Violation Line
ShortClassName Avoid short class names like PDF 129
ShortClassName Avoid short class names like LPDF 134
ShortClassName Avoid short class names like CDF 139
ShortClassName Avoid short class names like SF 144
ShortClassName Avoid short class names like ICDF 149
ShortClassName Avoid short class names like ISF 154
org/apache/commons/statistics/examples/distribution/ParetoCommand.java
Rule Violation Line
ShortClassName Avoid short class names like PDF 128
ShortClassName Avoid short class names like LPDF 133
ShortClassName Avoid short class names like CDF 138
ShortClassName Avoid short class names like SF 143
ShortClassName Avoid short class names like ICDF 148
ShortClassName Avoid short class names like ISF 153
org/apache/commons/statistics/examples/distribution/PascalCommand.java
Rule Violation Line
ShortClassName Avoid short class names like PMF 132
ShortClassName Avoid short class names like LPMF 138
ShortClassName Avoid short class names like CDF 143
ShortClassName Avoid short class names like SF 148
ShortClassName Avoid short class names like ICDF 153
ShortClassName Avoid short class names like ISF 158
org/apache/commons/statistics/examples/distribution/PoissonCommand.java
Rule Violation Line
ShortClassName Avoid short class names like PMF 115
ShortClassName Avoid short class names like LPMF 121
ShortClassName Avoid short class names like CDF 126
ShortClassName Avoid short class names like SF 131
ShortClassName Avoid short class names like ICDF 136
ShortClassName Avoid short class names like ISF 141
org/apache/commons/statistics/examples/distribution/TCommand.java
Rule Violation Line
ShortClassName Avoid short class names like PDF 113
ShortClassName Avoid short class names like LPDF 118
ShortClassName Avoid short class names like CDF 123
ShortClassName Avoid short class names like SF 128
ShortClassName Avoid short class names like ICDF 133
ShortClassName Avoid short class names like ISF 138
org/apache/commons/statistics/examples/distribution/TrapezoidalCommand.java
Rule Violation Line
ShortClassName Avoid short class names like PDF 150
ShortClassName Avoid short class names like LPDF 155
ShortClassName Avoid short class names like CDF 160
ShortClassName Avoid short class names like SF 165
ShortClassName Avoid short class names like ICDF 170
ShortClassName Avoid short class names like ISF 175
org/apache/commons/statistics/examples/distribution/TriangularCommand.java
Rule Violation Line
ShortClassName Avoid short class names like PDF 140
ShortClassName Avoid short class names like LPDF 145
ShortClassName Avoid short class names like CDF 150
ShortClassName Avoid short class names like SF 155
ShortClassName Avoid short class names like ICDF 160
ShortClassName Avoid short class names like ISF 165
org/apache/commons/statistics/examples/distribution/TruncatedNormalCommand.java
Rule Violation Line
ShortClassName Avoid short class names like PDF 152
ShortClassName Avoid short class names like LPDF 157
ShortClassName Avoid short class names like CDF 162
ShortClassName Avoid short class names like SF 167
ShortClassName Avoid short class names like ICDF 172
ShortClassName Avoid short class names like ISF 177
org/apache/commons/statistics/examples/distribution/UniformContinuousCommand.java
Rule Violation Line
ShortClassName Avoid short class names like PDF 130
ShortClassName Avoid short class names like LPDF 135
ShortClassName Avoid short class names like CDF 140
ShortClassName Avoid short class names like SF 145
ShortClassName Avoid short class names like ICDF 150
ShortClassName Avoid short class names like ISF 155
org/apache/commons/statistics/examples/distribution/UniformDiscreteCommand.java
Rule Violation Line
ShortClassName Avoid short class names like PMF 130
ShortClassName Avoid short class names like LPMF 136
ShortClassName Avoid short class names like CDF 141
ShortClassName Avoid short class names like SF 146
ShortClassName Avoid short class names like ICDF 151
ShortClassName Avoid short class names like ISF 156
org/apache/commons/statistics/examples/distribution/WeibullCommand.java
Rule Violation Line
ShortClassName Avoid short class names like PDF 128
ShortClassName Avoid short class names like LPDF 133
ShortClassName Avoid short class names like CDF 138
ShortClassName Avoid short class names like SF 143
ShortClassName Avoid short class names like ICDF 148
ShortClassName Avoid short class names like ISF 153
org/apache/commons/statistics/examples/distribution/ZipfCommand.java
Rule Violation Line
ShortClassName Avoid short class names like PMF 128
ShortClassName Avoid short class names like LPMF 134
ShortClassName Avoid short class names like CDF 139
ShortClassName Avoid short class names like SF 144
ShortClassName Avoid short class names like ICDF 149
ShortClassName Avoid short class names like ISF 154

Files

org/apache/commons/statistics/examples/distribution/AbstractContinuousDistributionCommand.java

Rule Violation Priority Line
AvoidLiteralsInIfCondition Avoid using literals in if statements 3 53

org/apache/commons/statistics/examples/distribution/AbstractDiscreteDistributionCommand.java

Rule Violation Priority Line
AvoidLiteralsInIfCondition Avoid using literals in if statements 3 53

org/apache/commons/statistics/examples/distribution/BetaCommand.java

Rule Violation Priority Line
ImmutableField Field 'params' may be declared final 3 47
AccessorMethodGeneration Consider giving this member package visibility to access it from BetaCommand.BaseCommand without a synthetic accessor method 3 56
ImmutableField Field 'alpha' may be declared final 3 56
AccessorMethodGeneration Consider giving this member package visibility to access it from BetaCommand.BaseCommand without a synthetic accessor method 3 63
ImmutableField Field 'beta' may be declared final 3 63
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 69
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 3 85
ImmutableField Field 'distributionOptions' may be declared final 3 98
ImmutableField Field 'distributionOptions' may be declared final 3 110
ShortClassName Avoid short class names like PDF 4 127
ShortClassName Avoid short class names like LPDF 4 132
ShortClassName Avoid short class names like CDF 4 137
ShortClassName Avoid short class names like SF 4 142
ShortClassName Avoid short class names like ICDF 4 147
ShortClassName Avoid short class names like ISF 4 152

org/apache/commons/statistics/examples/distribution/BinomialCommand.java

Rule Violation Priority Line
ImmutableField Field 'params' may be declared final 3 48
AccessorMethodGeneration Consider giving this member package visibility to access it from BinomialCommand.BaseCommand without a synthetic accessor method 3 57
ImmutableField Field 'trials' may be declared final 3 57
AccessorMethodGeneration Consider giving this member package visibility to access it from BinomialCommand.BaseCommand without a synthetic accessor method 3 64
ImmutableField Field 'p' may be declared final 3 64
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 70
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 3 86
ImmutableField Field 'distributionOptions' may be declared final 3 99
ImmutableField Field 'distributionOptions' may be declared final 3 111
ShortClassName Avoid short class names like PMF 4 129
ShortClassName Avoid short class names like LPMF 4 135
ShortClassName Avoid short class names like CDF 4 140
ShortClassName Avoid short class names like SF 4 145
ShortClassName Avoid short class names like ICDF 4 150
ShortClassName Avoid short class names like ISF 4 155

org/apache/commons/statistics/examples/distribution/CauchyCommand.java

Rule Violation Priority Line
ImmutableField Field 'params' may be declared final 3 47
AccessorMethodGeneration Consider giving this member package visibility to access it from CauchyCommand.BaseCommand without a synthetic accessor method 3 56
ImmutableField Field 'location' may be declared final 3 56
AccessorMethodGeneration Consider giving this member package visibility to access it from CauchyCommand.BaseCommand without a synthetic accessor method 3 63
ImmutableField Field 'scale' may be declared final 3 63
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 69
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 3 85
ImmutableField Field 'distributionOptions' may be declared final 3 98
ImmutableField Field 'distributionOptions' may be declared final 3 110
ShortClassName Avoid short class names like PDF 4 127
ShortClassName Avoid short class names like LPDF 4 132
ShortClassName Avoid short class names like CDF 4 137
ShortClassName Avoid short class names like SF 4 142
ShortClassName Avoid short class names like ICDF 4 147
ShortClassName Avoid short class names like ISF 4 152

org/apache/commons/statistics/examples/distribution/ChiSquaredCommand.java

Rule Violation Priority Line
ImmutableField Field 'params' may be declared final 3 48
AccessorMethodGeneration Consider giving this member package visibility to access it from ChiSquaredCommand.BaseCommand without a synthetic accessor method 3 57
ImmutableField Field 'df' may be declared final 3 57
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 63
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 3 72
ImmutableField Field 'distributionOptions' may be declared final 3 85
ImmutableField Field 'distributionOptions' may be declared final 3 97
ShortClassName Avoid short class names like PDF 4 114
ShortClassName Avoid short class names like LPDF 4 119
ShortClassName Avoid short class names like CDF 4 124
ShortClassName Avoid short class names like SF 4 129
ShortClassName Avoid short class names like ICDF 4 134
ShortClassName Avoid short class names like ISF 4 139

org/apache/commons/statistics/examples/distribution/Distribution.java

Rule Violation Priority Line
AvoidFieldNameMatchingTypeName It is somewhat confusing to have a field name matching the declaring class name 3 26

org/apache/commons/statistics/examples/distribution/DistributionUtils.java

Rule Violation Priority Line
GodClass Possible God Class (WMC=86, ATFD=64, TCC=2.536%) 3 34
CyclomaticComplexity The class 'DistributionUtils' has a total cyclomatic complexity of 86 (highest 7). 3 34
CognitiveComplexity The method 'check(List<Distribution<ContinuousDistribution>>, ContinuousDistributionOptions)' has a cognitive complexity of 34, current threshold is 15 3 207
NPathComplexity The method 'check(List<Distribution<ContinuousDistribution>>, ContinuousDistributionOptions)' has an NPath complexity of 1585, current threshold is 200 3 207
LogicInversion Use opposite operator instead of the logic complement operator. 3 219
LogicInversion Use opposite operator instead of the logic complement operator. 3 222
LogicInversion Use opposite operator instead of the logic complement operator. 3 225
LogicInversion Use opposite operator instead of the logic complement operator. 3 228
LogicInversion Use opposite operator instead of the logic complement operator. 3 236
CognitiveComplexity The method 'check(List<Distribution<DiscreteDistribution>>, DiscreteDistributionOptions)' has a cognitive complexity of 32, current threshold is 15 3 281
NPathComplexity The method 'check(List<Distribution<DiscreteDistribution>>, DiscreteDistributionOptions)' has an NPath complexity of 913, current threshold is 200 3 281
LogicInversion Use opposite operator instead of the logic complement operator. 3 293
LogicInversion Use opposite operator instead of the logic complement operator. 3 296
LogicInversion Use opposite operator instead of the logic complement operator. 3 299
LogicInversion Use opposite operator instead of the logic complement operator. 3 302
LogicInversion Use opposite operator instead of the logic complement operator. 3 310
LocalVariableCouldBeFinal Local variable 'f' could be declared final 3 405
LocalVariableCouldBeFinal Local variable 'f' could be declared final 3 445
LocalVariableCouldBeFinal Local variable 'f' could be declared final 3 485
LocalVariableCouldBeFinal Local variable 'f' could be declared final 3 519
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 1 617
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 1 642
AvoidReassigningParameters Avoid reassigning parameters such as 'array' 2 733
AvoidReassigningParameters Avoid reassigning parameters such as 'array' 2 751

org/apache/commons/statistics/examples/distribution/ExpCommand.java

Rule Violation Priority Line
ImmutableField Field 'params' may be declared final 3 47
AccessorMethodGeneration Consider giving this member package visibility to access it from ExpCommand.BaseCommand without a synthetic accessor method 3 56
ImmutableField Field 'mean' may be declared final 3 56
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 62
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 3 71
ImmutableField Field 'distributionOptions' may be declared final 3 84
ImmutableField Field 'distributionOptions' may be declared final 3 96
ShortClassName Avoid short class names like PDF 4 113
ShortClassName Avoid short class names like LPDF 4 118
ShortClassName Avoid short class names like CDF 4 123
ShortClassName Avoid short class names like SF 4 128
ShortClassName Avoid short class names like ICDF 4 133
ShortClassName Avoid short class names like ISF 4 138

org/apache/commons/statistics/examples/distribution/FCommand.java

Rule Violation Priority Line
ImmutableField Field 'params' may be declared final 3 47
AccessorMethodGeneration Consider giving this member package visibility to access it from FCommand.BaseCommand without a synthetic accessor method 3 56
ImmutableField Field 'df1' may be declared final 3 56
AccessorMethodGeneration Consider giving this member package visibility to access it from FCommand.BaseCommand without a synthetic accessor method 3 63
ImmutableField Field 'df2' may be declared final 3 63
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 69
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 3 85
ImmutableField Field 'distributionOptions' may be declared final 3 98
ImmutableField Field 'distributionOptions' may be declared final 3 110
ShortClassName Avoid short class names like PDF 4 127
ShortClassName Avoid short class names like LPDF 4 132
ShortClassName Avoid short class names like CDF 4 137
ShortClassName Avoid short class names like SF 4 142
ShortClassName Avoid short class names like ICDF 4 147
ShortClassName Avoid short class names like ISF 4 152

org/apache/commons/statistics/examples/distribution/FoldedNormalCommand.java

Rule Violation Priority Line
ImmutableField Field 'params' may be declared final 3 50
AccessorMethodGeneration Consider giving this member package visibility to access it from FoldedNormalCommand.BaseCommand without a synthetic accessor method 3 59
ImmutableField Field 'mu' may be declared final 3 59
AccessorMethodGeneration Consider giving this member package visibility to access it from FoldedNormalCommand.BaseCommand without a synthetic accessor method 3 66
ImmutableField Field 'sigma' may be declared final 3 66
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 72
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 3 88
ImmutableField Field 'distributionOptions' may be declared final 3 101
ImmutableField Field 'distributionOptions' may be declared final 3 113
ShortClassName Avoid short class names like PDF 4 130
ShortClassName Avoid short class names like LPDF 4 135
ShortClassName Avoid short class names like CDF 4 140
ShortClassName Avoid short class names like SF 4 145
ShortClassName Avoid short class names like ICDF 4 150
ShortClassName Avoid short class names like ISF 4 155

org/apache/commons/statistics/examples/distribution/GammaCommand.java

Rule Violation Priority Line
ImmutableField Field 'params' may be declared final 3 48
AccessorMethodGeneration Consider giving this member package visibility to access it from GammaCommand.BaseCommand without a synthetic accessor method 3 57
ImmutableField Field 'shape' may be declared final 3 57
AccessorMethodGeneration Consider giving this member package visibility to access it from GammaCommand.BaseCommand without a synthetic accessor method 3 64
ImmutableField Field 'scale' may be declared final 3 64
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 70
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 3 86
ImmutableField Field 'distributionOptions' may be declared final 3 99
ImmutableField Field 'distributionOptions' may be declared final 3 111
ShortClassName Avoid short class names like PDF 4 128
ShortClassName Avoid short class names like LPDF 4 133
ShortClassName Avoid short class names like CDF 4 138
ShortClassName Avoid short class names like SF 4 143
ShortClassName Avoid short class names like ICDF 4 148
ShortClassName Avoid short class names like ISF 4 153

org/apache/commons/statistics/examples/distribution/GeometricCommand.java

Rule Violation Priority Line
ImmutableField Field 'params' may be declared final 3 48
AccessorMethodGeneration Consider giving this member package visibility to access it from GeometricCommand.BaseCommand without a synthetic accessor method 3 57
ImmutableField Field 'p' may be declared final 3 57
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 63
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 3 72
ImmutableField Field 'distributionOptions' may be declared final 3 85
ImmutableField Field 'distributionOptions' may be declared final 3 97
ShortClassName Avoid short class names like PMF 4 115
ShortClassName Avoid short class names like LPMF 4 121
ShortClassName Avoid short class names like CDF 4 126
ShortClassName Avoid short class names like SF 4 131
ShortClassName Avoid short class names like ICDF 4 136
ShortClassName Avoid short class names like ISF 4 141

org/apache/commons/statistics/examples/distribution/GumbelCommand.java

Rule Violation Priority Line
ImmutableField Field 'params' may be declared final 3 47
AccessorMethodGeneration Consider giving this member package visibility to access it from GumbelCommand.BaseCommand without a synthetic accessor method 3 56
ImmutableField Field 'mu' may be declared final 3 56
AccessorMethodGeneration Consider giving this member package visibility to access it from GumbelCommand.BaseCommand without a synthetic accessor method 3 63
ImmutableField Field 'beta' may be declared final 3 63
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 69
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 3 85
ImmutableField Field 'distributionOptions' may be declared final 3 98
ImmutableField Field 'distributionOptions' may be declared final 3 110
ShortClassName Avoid short class names like PDF 4 127
ShortClassName Avoid short class names like LPDF 4 132
ShortClassName Avoid short class names like CDF 4 137
ShortClassName Avoid short class names like SF 4 142
ShortClassName Avoid short class names like ICDF 4 147
ShortClassName Avoid short class names like ISF 4 152

org/apache/commons/statistics/examples/distribution/HypergeometricCommand.java

Rule Violation Priority Line
ImmutableField Field 'params' may be declared final 3 48
AccessorMethodGeneration Consider giving this member package visibility to access it from HypergeometricCommand.BaseCommand without a synthetic accessor method 3 58
ImmutableField Field 'popSize' may be declared final 3 58
AccessorMethodGeneration Consider giving this member package visibility to access it from HypergeometricCommand.BaseCommand without a synthetic accessor method 3 66
ImmutableField Field 'successes' may be declared final 3 66
AccessorMethodGeneration Consider giving this member package visibility to access it from HypergeometricCommand.BaseCommand without a synthetic accessor method 3 73
ImmutableField Field 'n' may be declared final 3 73
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 79
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 3 97
ImmutableField Field 'distributionOptions' may be declared final 3 110
ImmutableField Field 'distributionOptions' may be declared final 3 122
ShortClassName Avoid short class names like PMF 4 140
ShortClassName Avoid short class names like LPMF 4 146
ShortClassName Avoid short class names like CDF 4 151
ShortClassName Avoid short class names like SF 4 156
ShortClassName Avoid short class names like ICDF 4 161
ShortClassName Avoid short class names like ISF 4 166

org/apache/commons/statistics/examples/distribution/LaplaceCommand.java

Rule Violation Priority Line
ImmutableField Field 'params' may be declared final 3 47
AccessorMethodGeneration Consider giving this member package visibility to access it from LaplaceCommand.BaseCommand without a synthetic accessor method 3 56
ImmutableField Field 'mu' may be declared final 3 56
AccessorMethodGeneration Consider giving this member package visibility to access it from LaplaceCommand.BaseCommand without a synthetic accessor method 3 63
ImmutableField Field 'beta' may be declared final 3 63
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 69
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 3 85
ImmutableField Field 'distributionOptions' may be declared final 3 98
ImmutableField Field 'distributionOptions' may be declared final 3 110
ShortClassName Avoid short class names like PDF 4 127
ShortClassName Avoid short class names like LPDF 4 132
ShortClassName Avoid short class names like CDF 4 137
ShortClassName Avoid short class names like SF 4 142
ShortClassName Avoid short class names like ICDF 4 147
ShortClassName Avoid short class names like ISF 4 152

org/apache/commons/statistics/examples/distribution/LevyCommand.java

Rule Violation Priority Line
ImmutableField Field 'params' may be declared final 3 47
AccessorMethodGeneration Consider giving this member package visibility to access it from LevyCommand.BaseCommand without a synthetic accessor method 3 56
ImmutableField Field 'mu' may be declared final 3 56
AccessorMethodGeneration Consider giving this member package visibility to access it from LevyCommand.BaseCommand without a synthetic accessor method 3 63
ImmutableField Field 'c' may be declared final 3 63
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 69
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 3 85
ImmutableField Field 'distributionOptions' may be declared final 3 98
ImmutableField Field 'distributionOptions' may be declared final 3 110
ShortClassName Avoid short class names like PDF 4 127
ShortClassName Avoid short class names like LPDF 4 132
ShortClassName Avoid short class names like CDF 4 137
ShortClassName Avoid short class names like SF 4 142
ShortClassName Avoid short class names like ICDF 4 147
ShortClassName Avoid short class names like ISF 4 152

org/apache/commons/statistics/examples/distribution/LogNormalCommand.java

Rule Violation Priority Line
ImmutableField Field 'params' may be declared final 3 48
AccessorMethodGeneration Consider giving this member package visibility to access it from LogNormalCommand.BaseCommand without a synthetic accessor method 3 57
ImmutableField Field 'mu' may be declared final 3 57
AccessorMethodGeneration Consider giving this member package visibility to access it from LogNormalCommand.BaseCommand without a synthetic accessor method 3 64
ImmutableField Field 'sigma' may be declared final 3 64
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 70
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 3 86
ImmutableField Field 'distributionOptions' may be declared final 3 99
ImmutableField Field 'distributionOptions' may be declared final 3 111
ShortClassName Avoid short class names like PDF 4 128
ShortClassName Avoid short class names like LPDF 4 133
ShortClassName Avoid short class names like CDF 4 138
ShortClassName Avoid short class names like SF 4 143
ShortClassName Avoid short class names like ICDF 4 148
ShortClassName Avoid short class names like ISF 4 153

org/apache/commons/statistics/examples/distribution/LogUniformCommand.java

Rule Violation Priority Line
ImmutableField Field 'params' may be declared final 3 48
AccessorMethodGeneration Consider giving this member package visibility to access it from LogUniformCommand.BaseCommand without a synthetic accessor method 3 58
ImmutableField Field 'lower' may be declared final 3 58
AccessorMethodGeneration Consider giving this member package visibility to access it from LogUniformCommand.BaseCommand without a synthetic accessor method 3 66
ImmutableField Field 'upper' may be declared final 3 66
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 72
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 3 88
ImmutableField Field 'distributionOptions' may be declared final 3 101
ImmutableField Field 'distributionOptions' may be declared final 3 113
ShortClassName Avoid short class names like PDF 4 130
ShortClassName Avoid short class names like LPDF 4 135
ShortClassName Avoid short class names like CDF 4 140
ShortClassName Avoid short class names like SF 4 145
ShortClassName Avoid short class names like ICDF 4 150
ShortClassName Avoid short class names like ISF 4 155

org/apache/commons/statistics/examples/distribution/LogisticCommand.java

Rule Violation Priority Line
ImmutableField Field 'params' may be declared final 3 47
AccessorMethodGeneration Consider giving this member package visibility to access it from LogisticCommand.BaseCommand without a synthetic accessor method 3 56
ImmutableField Field 'mu' may be declared final 3 56
AccessorMethodGeneration Consider giving this member package visibility to access it from LogisticCommand.BaseCommand without a synthetic accessor method 3 63
ImmutableField Field 's' may be declared final 3 63
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 69
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 3 85
ImmutableField Field 'distributionOptions' may be declared final 3 98
ImmutableField Field 'distributionOptions' may be declared final 3 110
ShortClassName Avoid short class names like PDF 4 127
ShortClassName Avoid short class names like LPDF 4 132
ShortClassName Avoid short class names like CDF 4 137
ShortClassName Avoid short class names like SF 4 142
ShortClassName Avoid short class names like ICDF 4 147
ShortClassName Avoid short class names like ISF 4 152

org/apache/commons/statistics/examples/distribution/ManifestVersionProvider.java

Rule Violation Priority Line
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 3 47
LooseCoupling Avoid using implementation types like 'Attributes'; use the interface instead 3 49
LooseCoupling Avoid using implementation types like 'Attributes'; use the interface instead 3 67
LooseCoupling Avoid using implementation types like 'Attributes'; use the interface instead 3 78

org/apache/commons/statistics/examples/distribution/NakagamiCommand.java

Rule Violation Priority Line
ImmutableField Field 'params' may be declared final 3 47
AccessorMethodGeneration Consider giving this member package visibility to access it from NakagamiCommand.BaseCommand without a synthetic accessor method 3 56
ImmutableField Field 'mu' may be declared final 3 56
AccessorMethodGeneration Consider giving this member package visibility to access it from NakagamiCommand.BaseCommand without a synthetic accessor method 3 63
ImmutableField Field 'omega' may be declared final 3 63
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 69
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 3 85
ImmutableField Field 'distributionOptions' may be declared final 3 98
ImmutableField Field 'distributionOptions' may be declared final 3 110
ShortClassName Avoid short class names like PDF 4 127
ShortClassName Avoid short class names like LPDF 4 132
ShortClassName Avoid short class names like CDF 4 137
ShortClassName Avoid short class names like SF 4 142
ShortClassName Avoid short class names like ICDF 4 147
ShortClassName Avoid short class names like ISF 4 152

org/apache/commons/statistics/examples/distribution/NormalCommand.java

Rule Violation Priority Line
ImmutableField Field 'params' may be declared final 3 48
AccessorMethodGeneration Consider giving this member package visibility to access it from NormalCommand.BaseCommand without a synthetic accessor method 3 57
ImmutableField Field 'mu' may be declared final 3 57
AccessorMethodGeneration Consider giving this member package visibility to access it from NormalCommand.BaseCommand without a synthetic accessor method 3 65
ImmutableField Field 'sigma' may be declared final 3 65
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 71
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 3 87
ImmutableField Field 'distributionOptions' may be declared final 3 100
ImmutableField Field 'distributionOptions' may be declared final 3 112
ShortClassName Avoid short class names like PDF 4 129
ShortClassName Avoid short class names like LPDF 4 134
ShortClassName Avoid short class names like CDF 4 139
ShortClassName Avoid short class names like SF 4 144
ShortClassName Avoid short class names like ICDF 4 149
ShortClassName Avoid short class names like ISF 4 154

org/apache/commons/statistics/examples/distribution/ParetoCommand.java

Rule Violation Priority Line
ImmutableField Field 'params' may be declared final 3 47
AccessorMethodGeneration Consider giving this member package visibility to access it from ParetoCommand.BaseCommand without a synthetic accessor method 3 57
ImmutableField Field 'scale' may be declared final 3 57
AccessorMethodGeneration Consider giving this member package visibility to access it from ParetoCommand.BaseCommand without a synthetic accessor method 3 64
ImmutableField Field 'shape' may be declared final 3 64
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 70
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 3 86
ImmutableField Field 'distributionOptions' may be declared final 3 99
ImmutableField Field 'distributionOptions' may be declared final 3 111
ShortClassName Avoid short class names like PDF 4 128
ShortClassName Avoid short class names like LPDF 4 133
ShortClassName Avoid short class names like CDF 4 138
ShortClassName Avoid short class names like SF 4 143
ShortClassName Avoid short class names like ICDF 4 148
ShortClassName Avoid short class names like ISF 4 153

org/apache/commons/statistics/examples/distribution/PascalCommand.java

Rule Violation Priority Line
ImmutableField Field 'params' may be declared final 3 48
AccessorMethodGeneration Consider giving this member package visibility to access it from PascalCommand.BaseCommand without a synthetic accessor method 3 57
ImmutableField Field 'r' may be declared final 3 57
AccessorMethodGeneration Consider giving this member package visibility to access it from PascalCommand.BaseCommand without a synthetic accessor method 3 67
ImmutableField Field 'p' may be declared final 3 67
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 73
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 3 89
ImmutableField Field 'distributionOptions' may be declared final 3 102
ImmutableField Field 'distributionOptions' may be declared final 3 114
ShortClassName Avoid short class names like PMF 4 132
ShortClassName Avoid short class names like LPMF 4 138
ShortClassName Avoid short class names like CDF 4 143
ShortClassName Avoid short class names like SF 4 148
ShortClassName Avoid short class names like ICDF 4 153
ShortClassName Avoid short class names like ISF 4 158

org/apache/commons/statistics/examples/distribution/PoissonCommand.java

Rule Violation Priority Line
ImmutableField Field 'params' may be declared final 3 48
AccessorMethodGeneration Consider giving this member package visibility to access it from PoissonCommand.BaseCommand without a synthetic accessor method 3 57
ImmutableField Field 'mean' may be declared final 3 57
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 63
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 3 72
ImmutableField Field 'distributionOptions' may be declared final 3 85
ImmutableField Field 'distributionOptions' may be declared final 3 97
ShortClassName Avoid short class names like PMF 4 115
ShortClassName Avoid short class names like LPMF 4 121
ShortClassName Avoid short class names like CDF 4 126
ShortClassName Avoid short class names like SF 4 131
ShortClassName Avoid short class names like ICDF 4 136
ShortClassName Avoid short class names like ISF 4 141

org/apache/commons/statistics/examples/distribution/TCommand.java

Rule Violation Priority Line
ImmutableField Field 'params' may be declared final 3 47
AccessorMethodGeneration Consider giving this member package visibility to access it from TCommand.BaseCommand without a synthetic accessor method 3 56
ImmutableField Field 'df' may be declared final 3 56
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 62
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 3 71
ImmutableField Field 'distributionOptions' may be declared final 3 84
ImmutableField Field 'distributionOptions' may be declared final 3 96
ShortClassName Avoid short class names like PDF 4 113
ShortClassName Avoid short class names like LPDF 4 118
ShortClassName Avoid short class names like CDF 4 123
ShortClassName Avoid short class names like SF 4 128
ShortClassName Avoid short class names like ICDF 4 133
ShortClassName Avoid short class names like ISF 4 138

org/apache/commons/statistics/examples/distribution/TrapezoidalCommand.java

Rule Violation Priority Line
ImmutableField Field 'params' may be declared final 3 48
AvoidDuplicateLiterals The String literal "1..*" appears 4 times in this file; the first occurrence is on line 55 3 55
AccessorMethodGeneration Consider giving this member package visibility to access it from TrapezoidalCommand.BaseCommand without a synthetic accessor method 3 58
ImmutableField Field 'lower' may be declared final 3 58
AccessorMethodGeneration Consider giving this member package visibility to access it from TrapezoidalCommand.BaseCommand without a synthetic accessor method 3 66
ImmutableField Field 'start' may be declared final 3 66
AccessorMethodGeneration Consider giving this member package visibility to access it from TrapezoidalCommand.BaseCommand without a synthetic accessor method 3 74
ImmutableField Field 'end' may be declared final 3 74
AccessorMethodGeneration Consider giving this member package visibility to access it from TrapezoidalCommand.BaseCommand without a synthetic accessor method 3 82
ImmutableField Field 'upper' may be declared final 3 82
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 88
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 3 108
ImmutableField Field 'distributionOptions' may be declared final 3 121
ImmutableField Field 'distributionOptions' may be declared final 3 133
ShortClassName Avoid short class names like PDF 4 150
ShortClassName Avoid short class names like LPDF 4 155
ShortClassName Avoid short class names like CDF 4 160
ShortClassName Avoid short class names like SF 4 165
ShortClassName Avoid short class names like ICDF 4 170
ShortClassName Avoid short class names like ISF 4 175

org/apache/commons/statistics/examples/distribution/TriangularCommand.java

Rule Violation Priority Line
ImmutableField Field 'params' may be declared final 3 48
AccessorMethodGeneration Consider giving this member package visibility to access it from TriangularCommand.BaseCommand without a synthetic accessor method 3 58
ImmutableField Field 'lower' may be declared final 3 58
AccessorMethodGeneration Consider giving this member package visibility to access it from TriangularCommand.BaseCommand without a synthetic accessor method 3 66
ImmutableField Field 'mode' may be declared final 3 66
AccessorMethodGeneration Consider giving this member package visibility to access it from TriangularCommand.BaseCommand without a synthetic accessor method 3 74
ImmutableField Field 'upper' may be declared final 3 74
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 80
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 3 98
ImmutableField Field 'distributionOptions' may be declared final 3 111
ImmutableField Field 'distributionOptions' may be declared final 3 123
ShortClassName Avoid short class names like PDF 4 140
ShortClassName Avoid short class names like LPDF 4 145
ShortClassName Avoid short class names like CDF 4 150
ShortClassName Avoid short class names like SF 4 155
ShortClassName Avoid short class names like ICDF 4 160
ShortClassName Avoid short class names like ISF 4 165

org/apache/commons/statistics/examples/distribution/TruncatedNormalCommand.java

Rule Violation Priority Line
ImmutableField Field 'params' may be declared final 3 53
AvoidDuplicateLiterals The String literal "1..*" appears 4 times in this file; the first occurrence is on line 59 3 59
AccessorMethodGeneration Consider giving this member package visibility to access it from TruncatedNormalCommand.BaseCommand without a synthetic accessor method 3 62
ImmutableField Field 'mu' may be declared final 3 62
AccessorMethodGeneration Consider giving this member package visibility to access it from TruncatedNormalCommand.BaseCommand without a synthetic accessor method 3 69
ImmutableField Field 'sigma' may be declared final 3 69
AccessorMethodGeneration Consider giving this member package visibility to access it from TruncatedNormalCommand.BaseCommand without a synthetic accessor method 3 76
ImmutableField Field 'lower' may be declared final 3 76
AccessorMethodGeneration Consider giving this member package visibility to access it from TruncatedNormalCommand.BaseCommand without a synthetic accessor method 3 83
ImmutableField Field 'upper' may be declared final 3 83
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 89
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 3 109
ImmutableField Field 'distributionOptions' may be declared final 3 123
ImmutableField Field 'distributionOptions' may be declared final 3 135
ShortClassName Avoid short class names like PDF 4 152
ShortClassName Avoid short class names like LPDF 4 157
ShortClassName Avoid short class names like CDF 4 162
ShortClassName Avoid short class names like SF 4 167
ShortClassName Avoid short class names like ICDF 4 172
ShortClassName Avoid short class names like ISF 4 177

org/apache/commons/statistics/examples/distribution/UniformContinuousCommand.java

Rule Violation Priority Line
ImmutableField Field 'params' may be declared final 3 48
AccessorMethodGeneration Consider giving this member package visibility to access it from UniformContinuousCommand.BaseCommand without a synthetic accessor method 3 58
ImmutableField Field 'lower' may be declared final 3 58
AccessorMethodGeneration Consider giving this member package visibility to access it from UniformContinuousCommand.BaseCommand without a synthetic accessor method 3 66
ImmutableField Field 'upper' may be declared final 3 66
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 72
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 3 88
ImmutableField Field 'distributionOptions' may be declared final 3 101
ImmutableField Field 'distributionOptions' may be declared final 3 113
ShortClassName Avoid short class names like PDF 4 130
ShortClassName Avoid short class names like LPDF 4 135
ShortClassName Avoid short class names like CDF 4 140
ShortClassName Avoid short class names like SF 4 145
ShortClassName Avoid short class names like ICDF 4 150
ShortClassName Avoid short class names like ISF 4 155

org/apache/commons/statistics/examples/distribution/UniformDiscreteCommand.java

Rule Violation Priority Line
ImmutableField Field 'params' may be declared final 3 47
AccessorMethodGeneration Consider giving this member package visibility to access it from UniformDiscreteCommand.BaseCommand without a synthetic accessor method 3 57
ImmutableField Field 'lower' may be declared final 3 57
AccessorMethodGeneration Consider giving this member package visibility to access it from UniformDiscreteCommand.BaseCommand without a synthetic accessor method 3 65
ImmutableField Field 'upper' may be declared final 3 65
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 71
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 3 87
ImmutableField Field 'distributionOptions' may be declared final 3 100
ImmutableField Field 'distributionOptions' may be declared final 3 112
ShortClassName Avoid short class names like PMF 4 130
ShortClassName Avoid short class names like LPMF 4 136
ShortClassName Avoid short class names like CDF 4 141
ShortClassName Avoid short class names like SF 4 146
ShortClassName Avoid short class names like ICDF 4 151
ShortClassName Avoid short class names like ISF 4 156

org/apache/commons/statistics/examples/distribution/WeibullCommand.java

Rule Violation Priority Line
ImmutableField Field 'params' may be declared final 3 48
AccessorMethodGeneration Consider giving this member package visibility to access it from WeibullCommand.BaseCommand without a synthetic accessor method 3 57
ImmutableField Field 'alpha' may be declared final 3 57
AccessorMethodGeneration Consider giving this member package visibility to access it from WeibullCommand.BaseCommand without a synthetic accessor method 3 64
ImmutableField Field 'beta' may be declared final 3 64
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 70
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 3 86
ImmutableField Field 'distributionOptions' may be declared final 3 99
ImmutableField Field 'distributionOptions' may be declared final 3 111
ShortClassName Avoid short class names like PDF 4 128
ShortClassName Avoid short class names like LPDF 4 133
ShortClassName Avoid short class names like CDF 4 138
ShortClassName Avoid short class names like SF 4 143
ShortClassName Avoid short class names like ICDF 4 148
ShortClassName Avoid short class names like ISF 4 153

org/apache/commons/statistics/examples/distribution/ZipfCommand.java

Rule Violation Priority Line
ImmutableField Field 'params' may be declared final 3 47
AccessorMethodGeneration Consider giving this member package visibility to access it from ZipfCommand.BaseCommand without a synthetic accessor method 3 56
ImmutableField Field 'n' may be declared final 3 56
AccessorMethodGeneration Consider giving this member package visibility to access it from ZipfCommand.BaseCommand without a synthetic accessor method 3 63
ImmutableField Field 'e' may be declared final 3 63
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 69
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 3 85
ImmutableField Field 'distributionOptions' may be declared final 3 98
ImmutableField Field 'distributionOptions' may be declared final 3 110
ShortClassName Avoid short class names like PMF 4 128
ShortClassName Avoid short class names like LPMF 4 134
ShortClassName Avoid short class names like CDF 4 139
ShortClassName Avoid short class names like SF 4 144
ShortClassName Avoid short class names like ICDF 4 149
ShortClassName Avoid short class names like ISF 4 154