PMD Results

The following document contains the results of PMD 5.5.1.

Files

org/lightvoting/CDataWriter.java

Violation Line
Unnecessary use of fully qualified name 'org.bytedeco.javacpp.hdf5.H5F_ACC_TRUNC' due to existing import 'org.bytedeco.javacpp.hdf5' 50

org/lightvoting/CMain.java

Violation Line
Avoid unused private methods such as 'addAgents(Collection,int,Iterator)'. 175

org/lightvoting/simulation/action/message/CSend.java

Violation Line
Unnecessary final modifier in final class 60–64
Unnecessary final modifier in final class 71–75
Unnecessary final modifier in final class 78–81
Unnecessary final modifier in final class 84–87
Unnecessary final modifier in final class 90–130

org/lightvoting/simulation/agent/CChairAgent.java

Violation Line
Avoid unused private fields such as 'm_fileName'. 90
Unnecessary final modifier in final class 122–126
Useless parentheses. 170
Useless parentheses. 178
Avoid unused private methods such as 'toBV(AtomicIntegerArray)'. 244
Unnecessary final modifier in final class 475–484

org/lightvoting/simulation/agent/CVotingAgent.java

Violation Line
Avoid unused private fields such as 'm_fileName'. 119
Unnecessary final modifier in final class 169–173
Unnecessary final modifier in final class 182–185
Avoid unused private methods such as 'perceiveEnv()'. 211
Avoid unused private methods such as 'joinGroup()'. 219
Avoid unused private methods such as 'submitVote(CChairAgent)'. 230
Avoid unused private methods such as 'submitDiss(CChairAgent,Integer,BitVector)'. 252
Avoid unused method parameters such as 'p_altNum'. 281
Avoid unused private methods such as 'computeDiss(int)'. 429
Unnecessary final modifier in final class 541–544
Unnecessary final modifier in final class 550–576

org/lightvoting/simulation/combinations/CCombination.java

Violation Line
No need to explicitly extend Object. 36

org/lightvoting/simulation/constants/CVariableBuilder.java

Violation Line
Avoid unused private fields such as 'm_environment'. 48
Unnecessary final modifier in final class 61–66

org/lightvoting/simulation/environment/CEnvironment.java

Violation Line
Avoid unused private fields such as 'm_fileName'. 51
Avoid unused constructor parameters such as 'p_size'. 58
Unnecessary final modifier in final class 71–84
Useless parentheses. 160

org/lightvoting/simulation/environment/CGroup.java

Violation Line
Useless parentheses. 101

org/lightvoting/simulation/rule/CMinimaxApproval.java

Violation Line
Avoid unused method parameters such as 'p_altNum'. 112

org/lightvoting/simulation/rule/CMinisumApproval.java

Violation Line
Useless parentheses. 82