The following document contains the results of FindBugs
FindBugs Version is 3.0.1
Threshold is low
Effort is max
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.lightvoting.CMain.readYaml() may fail to clean up java.io.InputStream | EXPERIMENTAL | OBL_UNSATISFIED_OBLIGATION | 149 | Medium |
Private method org.lightvoting.CMain.addAgents(Collection, int, Iterator) is never called | PERFORMANCE | UPM_UNCALLED_PRIVATE_METHOD | 178 | Low |
org.lightvoting.CMain.readYaml() makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 156 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Private method org.lightvoting.simulation.agent.CChairAgent.toBV(AtomicIntegerArray) is never called | PERFORMANCE | UPM_UNCALLED_PRIVATE_METHOD | 246 | Low |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Unchecked/unconfirmed cast from org.lightjason.agentspeak.agent.IBaseAgent<org.lightvoting.simulation.agent.CChairAgent> to org.lightvoting.simulation.agent.CChairAgent in new org.lightvoting.simulation.agent.CVotingAgent(String, IAgentConfiguration, IBaseAgent, CEnvironment, int, String, String) | STYLE | BC_UNCONFIRMED_CAST | 143 | Low |
Private method org.lightvoting.simulation.agent.CVotingAgent.computeDiss(int[]) is never called | PERFORMANCE | UPM_UNCALLED_PRIVATE_METHOD | 431 | Low |
Private method org.lightvoting.simulation.agent.CVotingAgent.joinGroup() is never called | PERFORMANCE | UPM_UNCALLED_PRIVATE_METHOD | 221 | Low |
Private method org.lightvoting.simulation.agent.CVotingAgent.perceiveEnv() is never called | PERFORMANCE | UPM_UNCALLED_PRIVATE_METHOD | 213 | Low |
Private method org.lightvoting.simulation.agent.CVotingAgent.submitDiss(CChairAgent, Integer, BitVector) is never called | PERFORMANCE | UPM_UNCALLED_PRIVATE_METHOD | 254 | Low |
Private method org.lightvoting.simulation.agent.CVotingAgent.submitVote(CChairAgent) is never called | PERFORMANCE | UPM_UNCALLED_PRIVATE_METHOD | 232 | Low |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Unread field: org.lightvoting.simulation.constants.CVariableBuilder.m_environment | PERFORMANCE | URF_UNREAD_FIELD | 57 | Low |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Unread field: org.lightvoting.simulation.environment.CEnvironment.m_fileName | PERFORMANCE | URF_UNREAD_FIELD | 60 | Low |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Unread field: org.lightvoting.simulation.environment.CGroup.m_capacity; should this field be static? | PERFORMANCE | SS_SHOULD_BE_STATIC | 46 | Medium |
Useless object stored in variable l_terms of method org.lightvoting.simulation.environment.CGroup.literal(CChairAgent) | STYLE | UC_USELESS_OBJECT | 95 | Medium |