SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 3.1.12

Threshold is medium

Effort is default

Summary

Classes Bugs Errors Missing Classes
27 20 0 0

Files

Class Bugs
nl.tudelft.simulation.dsol.jetty.sse.OTSWebModel 4
nl.tudelft.simulation.dsol.jetty.sse.OTSWebServer 1
nl.tudelft.simulation.dsol.jetty.sse.OTSWebServer$ServerThread 1
nl.tudelft.simulation.dsol.jetty.sse.OTSWebServer$XHRHandler 4
nl.tudelft.simulation.dsol.jetty.sse.TestDemoServer$ServerThread 1
nl.tudelft.simulation.dsol.jetty.sse.TestDemoServer$XHRHandler 4
nl.tudelft.simulation.dsol.web.animation.HTMLDevice 1
nl.tudelft.simulation.dsol.web.animation.D2.HTMLAnimationPanel 1
nl.tudelft.simulation.dsol.web.animation.D2.HTMLGridPanel 1
org.opentrafficsim.web.test.CircularRoadModel 1
org.opentrafficsim.web.test.TJunctionModel 1

nl.tudelft.simulation.dsol.jetty.sse.OTSWebModel

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

nl.tudelft.simulation.dsol.jetty.sse.OTSWebServer

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

nl.tudelft.simulation.dsol.jetty.sse.OTSWebServer$ServerThread

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

nl.tudelft.simulation.dsol.jetty.sse.OTSWebServer$XHRHandler

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

nl.tudelft.simulation.dsol.jetty.sse.TestDemoServer$ServerThread

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

nl.tudelft.simulation.dsol.jetty.sse.TestDemoServer$XHRHandler

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

nl.tudelft.simulation.dsol.web.animation.HTMLDevice

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

nl.tudelft.simulation.dsol.web.animation.D2.HTMLAnimationPanel

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

nl.tudelft.simulation.dsol.web.animation.D2.HTMLGridPanel

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

org.opentrafficsim.web.test.CircularRoadModel

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

org.opentrafficsim.web.test.TJunctionModel

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