The following document contains the results of FindBugs
FindBugs Version is 3.0.1
Threshold is medium
Effort is min
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.sim0mq.demo.Client.main(String[]) invokes inefficient new Short(short) constructor; use Short.valueOf(short) instead | PERFORMANCE | DM_NUMBER_CTOR | 35 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.sim0mq.demo.RouterToReqExample$1.run() invokes System.exit(...), which shuts down the entire virtual machine | BAD_PRACTICE | DM_EXIT | 199 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Found reliance on default encoding in org.sim0mq.demo.RouterToReqExample$Worker.run(): String.getBytes() | I18N | DM_DEFAULT_ENCODING | 63 | High |
Format string should use %n rather than \n in org.sim0mq.demo.RouterToReqExample$Worker.run() | BAD_PRACTICE | VA_FORMAT_STRING_USES_NEWLINE | 115 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Found reliance on default encoding in new org.sim0mq.demo.mm1.MM1FederationManager(String, int, int, String): String.getBytes() | I18N | DM_DEFAULT_ENCODING | 55 | High |
org.sim0mq.demo.mm1.MM1FederationManager.setParameters(String) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 204 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
new org.sim0mq.demo.mm1.MM1FederationManager20(String, int, int, String) invokes org.sim0mq.demo.mm1.MM1FederationManager20$1.start() | MT_CORRECTNESS | SC_START_IN_CTOR | 126 | Medium |
new org.sim0mq.demo.mm1.MM1FederationManager20(String, int, int, String) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 136 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Possible null pointer dereference of stateMachine in org.sim0mq.demo.mm1.MM1FederationManager20$1.run() on exception path | CORRECTNESS | NP_NULL_ON_SOME_PATH_EXCEPTION | 124 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Found reliance on default encoding in new org.sim0mq.demo.mm1.MM1FederationManager20$StateMachine(AtomicLong, String, int, String, int): String.getBytes() | I18N | DM_DEFAULT_ENCODING | 195 | High |
Bad attempt to compute absolute value of signed 32-bit hashcode in org.sim0mq.demo.mm1.MM1FederationManager20$StateMachine.setParameters(String) | CORRECTNESS | RV_ABSOLUTE_VALUE_OF_HASHCODE | 345 | High |
org.sim0mq.demo.mm1.MM1FederationManager20$StateMachine.setParameters(String) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 355 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.sim0mq.demo.mm1.MM1Queue41Application.processKillFederate() invokes System.exit(...), which shuts down the entire virtual machine | BAD_PRACTICE | DM_EXIT | 422 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
new org.sim0mq.demo.reqrep.Rep(String[]) invokes System.exit(...), which shuts down the entire virtual machine | BAD_PRACTICE | DM_EXIT | 29 | Medium |
new org.sim0mq.demo.reqrep.Rep(String[]) invokes org.sim0mq.demo.reqrep.Rep$RepThread.start() | MT_CORRECTNESS | SC_START_IN_CTOR | 40 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Should org.sim0mq.demo.reqrep.Rep$RepThread be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | 69-143 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
new org.sim0mq.demo.reqrep.Req(String[]) invokes System.exit(...), which shuts down the entire virtual machine | BAD_PRACTICE | DM_EXIT | 37 | Medium |
new org.sim0mq.demo.reqrep.Req(String[]) invokes org.sim0mq.demo.reqrep.Req$ReqThread.start() | MT_CORRECTNESS | SC_START_IN_CTOR | 49 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Found reliance on default encoding in org.sim0mq.test.Tic.byte2string(byte[]): new String(byte[]) | I18N | DM_DEFAULT_ENCODING | 81 | High |
Found reliance on default encoding in org.sim0mq.test.Tic.string2byte(String): String.getBytes() | I18N | DM_DEFAULT_ENCODING | 70 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Found reliance on default encoding in org.sim0mq.test.TicPush.byte2string(byte[]): new String(byte[]) | I18N | DM_DEFAULT_ENCODING | 77 | High |
Found reliance on default encoding in org.sim0mq.test.TicPush.string2byte(String): String.getBytes() | I18N | DM_DEFAULT_ENCODING | 66 | High |