Apache Commons logo Apache Commons RNG

PMD Results

The following document contains the results of PMD 6.0.1.

Files

org/apache/commons/rng/core/BaseProvider.java

Violation Line
A method should have only one exit point, and that should be the last statement in the method 34

org/apache/commons/rng/core/source32/AbstractWell.java

Violation Line
Found non-transient, non-static member. Please mark as transient or provide accessors. 44
Found non-transient, non-static member. Please mark as transient or provide accessors. 46
Found 'DD'-anomaly for variable 's' (lines '67'-'68'). 6768
Found non-transient, non-static member. Please mark as transient or provide accessors. 123
Found non-transient, non-static member. Please mark as transient or provide accessors. 125
Found non-transient, non-static member. Please mark as transient or provide accessors. 127
Found non-transient, non-static member. Please mark as transient or provide accessors. 129
Found non-transient, non-static member. Please mark as transient or provide accessors. 131
Avoid autogenerated methods to access private fields and methods of inner / outer classes 141

org/apache/commons/rng/core/source32/ISAACRandom.java

Violation Line
Found non-transient, non-static member. Please mark as transient or provide accessors. 56
Found non-transient, non-static member. Please mark as transient or provide accessors. 58
Found non-transient, non-static member. Please mark as transient or provide accessors. 60
Found non-transient, non-static member. Please mark as transient or provide accessors. 62
Found non-transient, non-static member. Please mark as transient or provide accessors. 64
Found non-transient, non-static member. Please mark as transient or provide accessors. 66
Found non-transient, non-static member. Please mark as transient or provide accessors. 68
Found non-transient, non-static member. Please mark as transient or provide accessors. 70
Found non-transient, non-static member. Please mark as transient or provide accessors. 72
Found non-transient, non-static member. Please mark as transient or provide accessors. 74
Local variable 'k' could be declared final 129

org/apache/commons/rng/core/source32/IntProvider.java

Violation Line
Found non-transient, non-static member. Please mark as transient or provide accessors. 36
Found non-transient, non-static member. Please mark as transient or provide accessors. 47
Found 'DU'-anomaly for variable 'random' (lines '162'-'172'). 162172

org/apache/commons/rng/core/source32/JDKRandom.java

Violation Line
Found non-transient, non-static member. Please mark as transient or provide accessors. 44
Found non-transient, non-static member. Please mark as transient or provide accessors. 46

org/apache/commons/rng/core/source32/KISSRandom.java

Violation Line
Found non-transient, non-static member. Please mark as transient or provide accessors. 35
Found non-transient, non-static member. Please mark as transient or provide accessors. 37
Found non-transient, non-static member. Please mark as transient or provide accessors. 39
Found non-transient, non-static member. Please mark as transient or provide accessors. 41

org/apache/commons/rng/core/source32/MersenneTwister.java

Violation Line
Found non-transient, non-static member. Please mark as transient or provide accessors. 106
Found non-transient, non-static member. Please mark as transient or provide accessors. 108
Found 'DD'-anomaly for variable 's' (lines '122'-'123'). 122123
The method 'fillStateMersenneTwister(int, int)' has an NPath complexity of 612 162210
The method 'fillStateMersenneTwister(int, int)' has a cyclomatic complexity of 16. 162210
Avoid reassigning parameters such as 'seed' 163
Found 'DU'-anomaly for variable 'i' (lines '178'-'210'). 178210
Found 'DU'-anomaly for variable 'j' (lines '179'-'210'). 179210
Found 'DU'-anomaly for variable 'i' (lines '190'-'210'). 190210
Found 'DU'-anomaly for variable 'j' (lines '193'-'210'). 193210
Found 'DU'-anomaly for variable 'i' (lines '205'-'210'). 205210
Local variable 'mtCurr' could be declared final 220
Local variable 'mtCurr' could be declared final 226

org/apache/commons/rng/core/source32/MultiplyWithCarry256.java

Violation Line
Found non-transient, non-static member. Please mark as transient or provide accessors. 43
Found non-transient, non-static member. Please mark as transient or provide accessors. 45
Found non-transient, non-static member. Please mark as transient or provide accessors. 47
Found 'DD'-anomaly for variable 's' (lines '64'-'65'). 6465
Found 'DD'-anomaly for variable 's' (lines '65'-'66'). 6566

org/apache/commons/rng/core/source32/Well44497a.java

Violation Line
Avoid if (x != y) ..; else ..; 73

org/apache/commons/rng/core/source64/LongProvider.java

Violation Line
Found non-transient, non-static member. Please mark as transient or provide accessors. 36
Found non-transient, non-static member. Please mark as transient or provide accessors. 47
Found non-transient, non-static member. Please mark as transient or provide accessors. 54
Found non-transient, non-static member. Please mark as transient or provide accessors. 57
A method should have only one exit point, and that should be the last statement in the method 98
Found 'DU'-anomaly for variable 'random' (lines '193'-'203'). 193203

org/apache/commons/rng/core/source64/MersenneTwister64.java

Violation Line
Found non-transient, non-static member. Please mark as transient or provide accessors. 86
Found non-transient, non-static member. Please mark as transient or provide accessors. 88
Found 'DD'-anomaly for variable 's' (lines '102'-'103'). 102103
Avoid reassigning parameters such as 'seed' 126
Found 'DU'-anomaly for variable 'i' (lines '133'-'160'). 133160
Found 'DU'-anomaly for variable 'j' (lines '134'-'160'). 134160
Found 'DU'-anomaly for variable 'i' (lines '143'-'160'). 143160
Found 'DU'-anomaly for variable 'j' (lines '146'-'160'). 146160
Found 'DU'-anomaly for variable 'i' (lines '155'-'160'). 155160

org/apache/commons/rng/core/source64/SplitMix64.java

Violation Line
Found non-transient, non-static member. Please mark as transient or provide accessors. 33
Found 'DD'-anomaly for variable 'z' (lines '56'-'57'). 5657

org/apache/commons/rng/core/source64/TwoCmres.java

Violation Line
Found non-transient, non-static member. Please mark as transient or provide accessors. 43
Found non-transient, non-static member. Please mark as transient or provide accessors. 45
Found non-transient, non-static member. Please mark as transient or provide accessors. 47
Found non-transient, non-static member. Please mark as transient or provide accessors. 49
Use equals() to compare object references. 62
Found non-transient, non-static member. Please mark as transient or provide accessors. 183
Found 'UR'-anomaly for variable 'sg' (lines '297'-'303'). 297303
Local variable 'sg' could be declared final 302
Avoid autogenerated methods to access private fields and methods of inner / outer classes 304

org/apache/commons/rng/core/source64/XorShift1024Star.java

Violation Line
Found non-transient, non-static member. Please mark as transient or provide accessors. 36
Found non-transient, non-static member. Please mark as transient or provide accessors. 38
Found 'DD'-anomaly for variable 's' (lines '55'-'56'). 5556

org/apache/commons/rng/core/util/NumberFactory.java

Violation Line
Found 'DD'-anomaly for variable 'b' (lines '172'-'176'). 172176
Found 'DD'-anomaly for variable 'b' (lines '176'-'176'). 176
Found 'DD'-anomaly for variable 'output' (lines '238'-'242'). 238242
Found 'DD'-anomaly for variable 'output' (lines '242'-'242'). 242
Found 'DD'-anomaly for variable 'b' (lines '256'-'260'). 256260
Found 'DD'-anomaly for variable 'b' (lines '260'-'260'). 260
Found 'DD'-anomaly for variable 'output' (lines '322'-'326'). 322326
Found 'DD'-anomaly for variable 'output' (lines '326'-'326'). 326