SpotBugs Bug Detector Report
The following document contains the results of SpotBugs
SpotBugs Version is 4.8.6
Threshold is medium
Effort is default
Summary
Classes | Bugs | Errors | Missing Classes |
---|---|---|---|
6 | 5 | 0 | 0 |
Files
Class | Bugs |
---|---|
org.opentrafficsim.sim0mq.swing.PublisherDemo | 2 |
org.opentrafficsim.sim0mq.swing.Sim0mqPublisher | 3 |
org.opentrafficsim.sim0mq.swing.PublisherDemo
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Hard coded reference to an absolute pathname in org.opentrafficsim.sim0mq.swing.PublisherDemo.main(String[]) | STYLE | DMI_HARDCODED_ABSOLUTE_FILENAME | 100 | Medium |
Found reliance on default encoding in org.opentrafficsim.sim0mq.swing.PublisherDemo.main(String[]): new String(byte[]) | I18N | DM_DEFAULT_ENCODING | 100 | High |
org.opentrafficsim.sim0mq.swing.Sim0mqPublisher
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
new org.opentrafficsim.sim0mq.swing.Sim0mqPublisher(int, AbstractSimulationScript, List, List) invokes System.exit(...), which shuts down the entire virtual machine | BAD_PRACTICE | DM_EXIT | 149 | Medium |
new org.opentrafficsim.sim0mq.swing.Sim0mqPublisher(ZContext, String, String) may expose internal representation by storing an externally mutable object into Sim0mqPublisher.zContext | MALICIOUS_CODE | EI_EXPOSE_REP2 | 106 | Medium |
Exception is caught when Exception is not thrown in org.opentrafficsim.sim0mq.swing.Sim0mqPublisher.loadNetwork(String, Duration, Duration, Long) | STYLE | REC_CATCH_EXCEPTION | 284 | Medium |