The following document contains the results of SpotBugs
SpotBugs Version is 3.1.12
Threshold is medium
Effort is default
Classes | Bugs | Errors | Missing Classes |
---|---|---|---|
27 | 20 | 0 | 0 |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to params in nl.tudelft.simulation.dsol.jetty.sse.OTSWebModel.handle(String, Request, HttpServletRequest, HttpServletResponse) | STYLE | DLS_DEAD_LOCAL_STORE | 243 | Medium |
nl.tudelft.simulation.dsol.jetty.sse.OTSWebModel.getToggles(HTMLAnimationPanel) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 605 | Medium |
nl.tudelft.simulation.dsol.jetty.sse.OTSWebModel.handle(String, Request, HttpServletRequest, HttpServletResponse) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 402 | Medium |
HTTP parameter written to Servlet output in nl.tudelft.simulation.dsol.jetty.sse.OTSWebModel.handle(String, Request, HttpServletRequest, HttpServletResponse) | SECURITY | XSS_REQUEST_PARAMETER_TO_SERVLET_WRITER | 520 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
new nl.tudelft.simulation.dsol.jetty.sse.OTSWebServer(String, OTSSimulatorInterface, Rectangle2D$Double) invokes nl.tudelft.simulation.dsol.jetty.sse.OTSWebServer$ServerThread.start() | MT_CORRECTNESS | SC_START_IN_CTOR | 99 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Hard coded reference to an absolute pathname in nl.tudelft.simulation.dsol.jetty.sse.OTSWebServer$ServerThread.run() | STYLE | DMI_HARDCODED_ABSOLUTE_FILENAME | 112 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to params in nl.tudelft.simulation.dsol.jetty.sse.OTSWebServer$XHRHandler.handle(String, Request, HttpServletRequest, HttpServletResponse) | STYLE | DLS_DEAD_LOCAL_STORE | 276 | Medium |
nl.tudelft.simulation.dsol.jetty.sse.OTSWebServer$XHRHandler.getToggles(HTMLAnimationPanel) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 638 | Medium |
nl.tudelft.simulation.dsol.jetty.sse.OTSWebServer$XHRHandler.handle(String, Request, HttpServletRequest, HttpServletResponse) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 435 | Medium |
HTTP parameter written to Servlet output in nl.tudelft.simulation.dsol.jetty.sse.OTSWebServer$XHRHandler.handle(String, Request, HttpServletRequest, HttpServletResponse) | SECURITY | XSS_REQUEST_PARAMETER_TO_SERVLET_WRITER | 553 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Hard coded reference to an absolute pathname in nl.tudelft.simulation.dsol.jetty.sse.TestDemoServer$ServerThread.run() | STYLE | DMI_HARDCODED_ABSOLUTE_FILENAME | 101 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Boxing/unboxing to parse a primitive nl.tudelft.simulation.dsol.jetty.sse.TestDemoServer$XHRHandler.setParameters(OTSModelInterface, String) | PERFORMANCE | DM_BOXED_PRIMITIVE_FOR_PARSING | 523 | High |
Boxing/unboxing to parse a primitive nl.tudelft.simulation.dsol.jetty.sse.TestDemoServer$XHRHandler.setParameters(OTSModelInterface, String) | PERFORMANCE | DM_BOXED_PRIMITIVE_FOR_PARSING | 518 | High |
Exception is caught when Exception is not thrown in nl.tudelft.simulation.dsol.jetty.sse.TestDemoServer$XHRHandler.setParameters(OTSModelInterface, String) | STYLE | REC_CATCH_EXCEPTION | 551 | Medium |
HTTP parameter written to Servlet output in nl.tudelft.simulation.dsol.jetty.sse.TestDemoServer$XHRHandler.handle(String, Request, HttpServletRequest, HttpServletResponse) | SECURITY | XSS_REQUEST_PARAMETER_TO_SERVLET_WRITER | 278 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
nl.tudelft.simulation.dsol.web.animation.HTMLDevice.getConfigurations() may expose internal representation by returning HTMLDevice.htmlGraphicsConfigurations | MALICIOUS_CODE | EI_EXPOSE_REP | 54 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
nl.tudelft.simulation.dsol.web.animation.D2.HTMLAnimationPanel.isShowClass(Class) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 184 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Inconsistent synchronization of nl.tudelft.simulation.dsol.web.animation.D2.HTMLGridPanel.extent; locked 92% of time | MT_CORRECTNESS | IS2_INCONSISTENT_SYNC | 180 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Exception is caught when Exception is not thrown in org.opentrafficsim.web.test.CircularRoadModel.constructModel() | STYLE | REC_CATCH_EXCEPTION | 226 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Hard coded reference to an absolute pathname in org.opentrafficsim.web.test.TJunctionModel.constructModel() | STYLE | DMI_HARDCODED_ABSOLUTE_FILENAME | 59 | Medium |