Fork me on GitHub

SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 4.8.4

Threshold is medium

Effort is max

Summary

Classes Bugs Errors Missing Classes
38 9 0 0

Files

Class Bugs
info.mikethomas.jfold.SocketConnection 1
info.mikethomas.jfold.simulation.SimulationInfo 1
info.mikethomas.jfold.unit.Unit 5
info.mikethomas.jfold.util.DateAdapter 1
info.mikethomas.jfold.util.JacksonUtil 1

info.mikethomas.jfold.SocketConnection

Bug Category Details Line Priority
Exception thrown in class info.mikethomas.jfold.SocketConnection at new info.mikethomas.jfold.SocketConnection(String, int) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 77 Medium

info.mikethomas.jfold.simulation.SimulationInfo

Bug Category Details Line Priority
info.mikethomas.jfold.simulation.SimulationInfo.getStartTime() may expose internal representation by returning SimulationInfo.startTime MALICIOUS_CODE EI_EXPOSE_REP 159 Medium

info.mikethomas.jfold.unit.Unit

Bug Category Details Line Priority
info.mikethomas.jfold.unit.Unit.getAssigned() may expose internal representation by returning Unit.assigned MALICIOUS_CODE EI_EXPOSE_REP 198 Medium
info.mikethomas.jfold.unit.Unit.getCs() may expose internal representation by returning Unit.cs MALICIOUS_CODE EI_EXPOSE_REP 232 Medium
info.mikethomas.jfold.unit.Unit.getDeadline() may expose internal representation by returning Unit.deadline MALICIOUS_CODE EI_EXPOSE_REP 216 Medium
info.mikethomas.jfold.unit.Unit.getTimeout() may expose internal representation by returning Unit.timeout MALICIOUS_CODE EI_EXPOSE_REP 207 Medium
info.mikethomas.jfold.unit.Unit.getWs() may expose internal representation by returning Unit.ws MALICIOUS_CODE EI_EXPOSE_REP 224 Medium

info.mikethomas.jfold.util.DateAdapter

Bug Category Details Line Priority
info.mikethomas.jfold.util.DateAdapter.DATE_FORMAT is a static field of type java.text.DateFormat, which isn't thread safe MT_CORRECTNESS STCAL_STATIC_SIMPLE_DATE_FORMAT_INSTANCE Not available High

info.mikethomas.jfold.util.JacksonUtil

Bug Category Details Line Priority
Public static info.mikethomas.jfold.util.JacksonUtil.getObjectMapper() may expose internal representation by returning JacksonUtil.mapper MALICIOUS_CODE MS_EXPOSE_REP 49 Medium