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 | 44 | 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 | 220 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Found reliance on default encoding in org.sim0mq.demo.RouterToReqExample$Worker.run(): String.getBytes() | I18N | DM_DEFAULT_ENCODING | 79 | High |
Format string should use %n rather than \n in org.sim0mq.demo.RouterToReqExample$Worker.run() | BAD_PRACTICE | VA_FORMAT_STRING_USES_NEWLINE | 134 | 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 | 59 | High |
org.sim0mq.demo.mm1.MM1FederationManager.setParameters(String) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 214 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
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 | 144 | 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 | 129 | 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 | 205 | 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 | 361 | High |
org.sim0mq.demo.mm1.MM1FederationManager20$StateMachine.setParameters(String) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 371 | 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 | 433 | 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 | 30 | Medium |
new org.sim0mq.demo.reqrep.Rep(String[]) invokes org.sim0mq.demo.reqrep.Rep$RepThread.start() | MT_CORRECTNESS | SC_START_IN_CTOR | 41 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Should org.sim0mq.demo.reqrep.Rep$RepThread be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | 70-144 | 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 | 38 | Medium |
new org.sim0mq.demo.reqrep.Req(String[]) invokes org.sim0mq.demo.reqrep.Req$ReqThread.start() | MT_CORRECTNESS | SC_START_IN_CTOR | 50 | 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 | 87 | High |
Found reliance on default encoding in org.sim0mq.test.Tic.string2byte(String): String.getBytes() | I18N | DM_DEFAULT_ENCODING | 76 | 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 | 83 | High |
Found reliance on default encoding in org.sim0mq.test.TicPush.string2byte(String): String.getBytes() | I18N | DM_DEFAULT_ENCODING | 72 | High |