SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 4.9.8

Threshold is medium

Effort is default

Summary

Classes Bugs Errors Missing Classes
139 66 0 0

Files

Class Bugs
nl.tudelft.simulation.dsol.demo.des.experiment.DesExperimentApplication 1
nl.tudelft.simulation.dsol.demo.des.experiment.DesExperimentModel 1
nl.tudelft.simulation.dsol.demo.des.experiment.DesExperimentStoppingApp 1
nl.tudelft.simulation.dsol.demo.des.mm1.step02.DesQueueingModel2 1
nl.tudelft.simulation.dsol.demo.des.mm1.step06.DesQueueingApplication6 1
nl.tudelft.simulation.dsol.demo.des.mm1.step07.DesQueueingApplication7 1
nl.tudelft.simulation.dsol.demo.des.mm1.step08.DesQueueingApplication8 1
nl.tudelft.simulation.dsol.demo.des.mm1.step08.DesQueueingModel8 1
nl.tudelft.simulation.dsol.demo.des.mm1.step09.DesQueueingApplication9 1
nl.tudelft.simulation.dsol.demo.des.mm1.step09.DesQueueingModel9 1
nl.tudelft.simulation.dsol.demo.des.mm1.step10.DesQueueingModel10 1
nl.tudelft.simulation.dsol.demo.flow.mm1.MM1Application 2
nl.tudelft.simulation.dsol.demo.flow.mm1.MM1ExperimentApplication 2
nl.tudelft.simulation.dsol.demo.flow.mm1.MM1Model 1
nl.tudelft.simulation.dsol.demo.flow.mm1.MM1SwingApplication 1
nl.tudelft.simulation.dsol.demo.flow.mm1.MM1SwingApplicationEvents 1
nl.tudelft.simulation.dsol.demo.flow.mm1.step01.FlowQueueingApplication1 1
nl.tudelft.simulation.dsol.demo.visualization.VisualizationDemo 2
nl.tudelft.simulation.dsol.tutorial.section25.Customer 1
nl.tudelft.simulation.dsol.tutorial.section25.CustomerOrderApp 1
nl.tudelft.simulation.dsol.tutorial.section42.Customer 2
nl.tudelft.simulation.dsol.tutorial.section42.Retailer 3
nl.tudelft.simulation.dsol.tutorial.section42.Warehouse 1
nl.tudelft.simulation.dsol.tutorial.section42.Warehouse42Model 1
nl.tudelft.simulation.dsol.tutorial.section42.policies.StationaryPolicy 1
nl.tudelft.simulation.dsol.tutorial.section43.PredatorPreyModel 1
nl.tudelft.simulation.examples.dsol.animation.BallAnimation$BallTextAnimation 2
nl.tudelft.simulation.examples.dsol.animation.BallSwingApplication$1 1
nl.tudelft.simulation.examples.dsol.animation.DiscreteBall 2
nl.tudelft.simulation.examples.dsol.animation.continuous.Ball 2
nl.tudelft.simulation.examples.dsol.dess.DessModel 2
nl.tudelft.simulation.examples.dsol.terminal.Agv 1
nl.tudelft.simulation.examples.dsol.terminal.ConsoleRunnerTerminal 3
nl.tudelft.simulation.examples.dsol.terminal.Container 5
nl.tudelft.simulation.examples.dsol.terminal.ExperimentRunnerTerminal 3
nl.tudelft.simulation.examples.dsol.terminal.IntResource 3
nl.tudelft.simulation.examples.dsol.terminal.QuayCrane 1
nl.tudelft.simulation.examples.dsol.terminal.Terminal 1
nl.tudelft.simulation.examples.dsol.timesharedcomputer.Cpu 2
nl.tudelft.simulation.examples.dsol.timesharedcomputer.Job 3
nl.tudelft.simulation.examples.dsol.timesharedcomputer.Terminal 3

nl.tudelft.simulation.dsol.demo.des.experiment.DesExperimentApplication

Bug Category Details Line Priority
nl.tudelft.simulation.dsol.demo.des.experiment.DesExperimentApplication.reportFinalStats() makes inefficient use of keySet iterator instead of entrySet iterator PERFORMANCE WMI_WRONG_MAP_ITERATOR 101 Medium

nl.tudelft.simulation.dsol.demo.des.experiment.DesExperimentModel

Bug Category Details Line Priority
Exception thrown in class nl.tudelft.simulation.dsol.demo.des.experiment.DesExperimentModel at new nl.tudelft.simulation.dsol.demo.des.experiment.DesExperimentModel(DevsSimulatorInterface) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 86 Medium

nl.tudelft.simulation.dsol.demo.des.experiment.DesExperimentStoppingApp

Bug Category Details Line Priority
nl.tudelft.simulation.dsol.demo.des.experiment.DesExperimentStoppingApp.reportFinalStats() makes inefficient use of keySet iterator instead of entrySet iterator PERFORMANCE WMI_WRONG_MAP_ITERATOR 110 Medium

nl.tudelft.simulation.dsol.demo.des.mm1.step02.DesQueueingModel2

Bug Category Details Line Priority
Unread field: nl.tudelft.simulation.dsol.demo.des.mm1.step02.DesQueueingModel2.queue PERFORMANCE URF_UNREAD_FIELD 26 Medium

nl.tudelft.simulation.dsol.demo.des.mm1.step06.DesQueueingApplication6

Bug Category Details Line Priority
Exception thrown in class nl.tudelft.simulation.dsol.demo.des.mm1.step06.DesQueueingApplication6 at new nl.tudelft.simulation.dsol.demo.des.mm1.step06.DesQueueingApplication6() will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 32 Medium

nl.tudelft.simulation.dsol.demo.des.mm1.step07.DesQueueingApplication7

Bug Category Details Line Priority
Exception thrown in class nl.tudelft.simulation.dsol.demo.des.mm1.step07.DesQueueingApplication7 at new nl.tudelft.simulation.dsol.demo.des.mm1.step07.DesQueueingApplication7() will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 29 Medium

nl.tudelft.simulation.dsol.demo.des.mm1.step08.DesQueueingApplication8

Bug Category Details Line Priority
Exception thrown in class nl.tudelft.simulation.dsol.demo.des.mm1.step08.DesQueueingApplication8 at new nl.tudelft.simulation.dsol.demo.des.mm1.step08.DesQueueingApplication8() will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 27 Medium

nl.tudelft.simulation.dsol.demo.des.mm1.step08.DesQueueingModel8

Bug Category Details Line Priority
Exception thrown in class nl.tudelft.simulation.dsol.demo.des.mm1.step08.DesQueueingModel8 at new nl.tudelft.simulation.dsol.demo.des.mm1.step08.DesQueueingModel8(DevsSimulatorInterface) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 86 Medium

nl.tudelft.simulation.dsol.demo.des.mm1.step09.DesQueueingApplication9

Bug Category Details Line Priority
Exception thrown in class nl.tudelft.simulation.dsol.demo.des.mm1.step09.DesQueueingApplication9 at new nl.tudelft.simulation.dsol.demo.des.mm1.step09.DesQueueingApplication9() will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 30 Medium

nl.tudelft.simulation.dsol.demo.des.mm1.step09.DesQueueingModel9

Bug Category Details Line Priority
Exception thrown in class nl.tudelft.simulation.dsol.demo.des.mm1.step09.DesQueueingModel9 at new nl.tudelft.simulation.dsol.demo.des.mm1.step09.DesQueueingModel9(DevsSimulatorInterface) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 91 Medium

nl.tudelft.simulation.dsol.demo.des.mm1.step10.DesQueueingModel10

Bug Category Details Line Priority
Exception thrown in class nl.tudelft.simulation.dsol.demo.des.mm1.step10.DesQueueingModel10 at new nl.tudelft.simulation.dsol.demo.des.mm1.step10.DesQueueingModel10(DevsSimulatorInterface) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 91 Medium

nl.tudelft.simulation.dsol.demo.flow.mm1.MM1Application

Bug Category Details Line Priority
Exception thrown in class nl.tudelft.simulation.dsol.demo.flow.mm1.MM1Application at new nl.tudelft.simulation.dsol.demo.flow.mm1.MM1Application() will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 45 Medium
nl.tudelft.simulation.dsol.demo.flow.mm1.MM1Application.terminate() invokes System.exit(...), which shuts down the entire virtual machine BAD_PRACTICE DM_EXIT 57 Medium

nl.tudelft.simulation.dsol.demo.flow.mm1.MM1ExperimentApplication

Bug Category Details Line Priority
nl.tudelft.simulation.dsol.demo.flow.mm1.MM1ExperimentApplication.reportFinalStatistics() invokes System.exit(...), which shuts down the entire virtual machine BAD_PRACTICE DM_EXIT 105 Medium
nl.tudelft.simulation.dsol.demo.flow.mm1.MM1ExperimentApplication.reportFinalStatistics() makes inefficient use of keySet iterator instead of entrySet iterator PERFORMANCE WMI_WRONG_MAP_ITERATOR 96 Medium

nl.tudelft.simulation.dsol.demo.flow.mm1.MM1Model

Bug Category Details Line Priority
Exception thrown in class nl.tudelft.simulation.dsol.demo.flow.mm1.MM1Model at new nl.tudelft.simulation.dsol.demo.flow.mm1.MM1Model(DevsSimulator) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 70 Medium

nl.tudelft.simulation.dsol.demo.flow.mm1.MM1SwingApplication

Bug Category Details Line Priority
new nl.tudelft.simulation.dsol.demo.flow.mm1.MM1SwingApplication(MM1Panel, MM1Model, DevsSimulator) may expose internal representation by storing an externally mutable object into MM1SwingApplication.model MALICIOUS_CODE EI_EXPOSE_REP2 45 Medium

nl.tudelft.simulation.dsol.demo.flow.mm1.MM1SwingApplicationEvents

Bug Category Details Line Priority
new nl.tudelft.simulation.dsol.demo.flow.mm1.MM1SwingApplicationEvents(MM1Panel, MM1Model, DevsSimulator) may expose internal representation by storing an externally mutable object into MM1SwingApplicationEvents.model MALICIOUS_CODE EI_EXPOSE_REP2 48 Medium

nl.tudelft.simulation.dsol.demo.flow.mm1.step01.FlowQueueingApplication1

Bug Category Details Line Priority
Exception thrown in class nl.tudelft.simulation.dsol.demo.flow.mm1.step01.FlowQueueingApplication1 at new nl.tudelft.simulation.dsol.demo.flow.mm1.step01.FlowQueueingApplication1() will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 32 Medium

nl.tudelft.simulation.dsol.demo.visualization.VisualizationDemo

Bug Category Details Line Priority
Exception thrown in class nl.tudelft.simulation.dsol.demo.visualization.VisualizationDemo at new nl.tudelft.simulation.dsol.demo.visualization.VisualizationDemo() will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 52 Medium
new nl.tudelft.simulation.dsol.demo.visualization.VisualizationDemo() invokes nl.tudelft.simulation.dsol.demo.visualization.VisualizationDemo$DrawObjectsThread.start() MT_CORRECTNESS SC_START_IN_CTOR 64 Medium

nl.tudelft.simulation.dsol.tutorial.section25.Customer

Bug Category Details Line Priority
new nl.tudelft.simulation.dsol.tutorial.section25.Customer(DevsSimulatorInterface) may expose internal representation by storing an externally mutable object into Customer.simulator MALICIOUS_CODE EI_EXPOSE_REP2 30 Medium

nl.tudelft.simulation.dsol.tutorial.section25.CustomerOrderApp

Bug Category Details Line Priority
nl.tudelft.simulation.dsol.tutorial.section25.CustomerOrderApp.notify(Event) invokes System.exit(...), which shuts down the entire virtual machine BAD_PRACTICE DM_EXIT 44 Medium

nl.tudelft.simulation.dsol.tutorial.section42.Customer

Bug Category Details Line Priority
Exception thrown in class nl.tudelft.simulation.dsol.tutorial.section42.Customer at new nl.tudelft.simulation.dsol.tutorial.section42.Customer(DevsSimulatorInterface, SellerInterface) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 54 Medium
new nl.tudelft.simulation.dsol.tutorial.section42.Customer(DevsSimulatorInterface, SellerInterface) may expose internal representation by storing an externally mutable object into Customer.simulator MALICIOUS_CODE EI_EXPOSE_REP2 47 Medium

nl.tudelft.simulation.dsol.tutorial.section42.Retailer

Bug Category Details Line Priority
Exception thrown in class nl.tudelft.simulation.dsol.tutorial.section42.Retailer at new nl.tudelft.simulation.dsol.tutorial.section42.Retailer(DevsSimulatorInterface, SellerInterface) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 84 Medium
new nl.tudelft.simulation.dsol.tutorial.section42.Retailer(DevsSimulatorInterface, SellerInterface) invokes System.exit(...), which shuts down the entire virtual machine BAD_PRACTICE DM_EXIT 82 Medium
new nl.tudelft.simulation.dsol.tutorial.section42.Retailer(DevsSimulatorInterface, SellerInterface) may expose internal representation by storing an externally mutable object into Retailer.simulator MALICIOUS_CODE EI_EXPOSE_REP2 68 Medium

nl.tudelft.simulation.dsol.tutorial.section42.Warehouse

Bug Category Details Line Priority
new nl.tudelft.simulation.dsol.tutorial.section42.Warehouse(DevsSimulatorInterface) may expose internal representation by storing an externally mutable object into Warehouse.simulator MALICIOUS_CODE EI_EXPOSE_REP2 33 Medium

nl.tudelft.simulation.dsol.tutorial.section42.Warehouse42Model

Bug Category Details Line Priority
Exception thrown in class nl.tudelft.simulation.dsol.tutorial.section42.Warehouse42Model at new nl.tudelft.simulation.dsol.tutorial.section42.Warehouse42Model(DevsSimulator) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 46 Medium

nl.tudelft.simulation.dsol.tutorial.section42.policies.StationaryPolicy

Bug Category Details Line Priority
new nl.tudelft.simulation.dsol.tutorial.section42.policies.StationaryPolicy(SimulatorInterface) invokes System.exit(...), which shuts down the entire virtual machine BAD_PRACTICE DM_EXIT 41 Medium

nl.tudelft.simulation.dsol.tutorial.section43.PredatorPreyModel

Bug Category Details Line Priority
nl.tudelft.simulation.dsol.tutorial.section43.PredatorPreyModel.getChart() may expose internal representation by returning PredatorPreyModel.chart MALICIOUS_CODE EI_EXPOSE_REP 81 Medium

nl.tudelft.simulation.examples.dsol.animation.BallAnimation$BallTextAnimation

Bug Category Details Line Priority
new nl.tudelft.simulation.examples.dsol.animation.BallAnimation$BallTextAnimation(BallAnimation, Ball, SimulatorInterface) may expose internal representation by storing an externally mutable object into BallAnimation$BallTextAnimation.this$0 MALICIOUS_CODE EI_EXPOSE_REP2 92 Medium
Should nl.tudelft.simulation.examples.dsol.animation.BallAnimation$BallTextAnimation be a _static_ inner class? PERFORMANCE SIC_INNER_SHOULD_BE_STATIC 92-114 Medium

nl.tudelft.simulation.examples.dsol.animation.BallSwingApplication$1

Bug Category Details Line Priority
Boxing/unboxing to parse a primitive nl.tudelft.simulation.examples.dsol.animation.BallSwingApplication$1.searchObject(String) PERFORMANCE DM_BOXED_PRIMITIVE_FOR_PARSING 59 High

nl.tudelft.simulation.examples.dsol.animation.DiscreteBall

Bug Category Details Line Priority
Exception thrown in class nl.tudelft.simulation.examples.dsol.animation.DiscreteBall at new nl.tudelft.simulation.examples.dsol.animation.DiscreteBall(int, DevsSimulatorInterface) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 63 Medium
new nl.tudelft.simulation.examples.dsol.animation.DiscreteBall(int, DevsSimulatorInterface) may expose internal representation by storing an externally mutable object into DiscreteBall.simulator MALICIOUS_CODE EI_EXPOSE_REP2 52 Medium

nl.tudelft.simulation.examples.dsol.animation.continuous.Ball

Bug Category Details Line Priority
new nl.tudelft.simulation.examples.dsol.animation.continuous.Ball(int, DessSimulatorInterface) may expose internal representation by storing an externally mutable object into Ball.simulator MALICIOUS_CODE EI_EXPOSE_REP2 46 Medium
The class name nl.tudelft.simulation.examples.dsol.animation.continuous.Ball shadows the simple name of the superclass nl.tudelft.simulation.examples.dsol.animation.Ball BAD_PRACTICE NM_SAME_SIMPLE_NAME_AS_SUPERCLASS 20-75 High

nl.tudelft.simulation.examples.dsol.dess.DessModel

Bug Category Details Line Priority
nl.tudelft.simulation.examples.dsol.dess.DessModel.getDistanceChart() may expose internal representation by returning DessModel.distanceChart MALICIOUS_CODE EI_EXPOSE_REP 58 Medium
nl.tudelft.simulation.examples.dsol.dess.DessModel.getDistancePersistent() may expose internal representation by returning DessModel.distancePersistent MALICIOUS_CODE EI_EXPOSE_REP 66 Medium

nl.tudelft.simulation.examples.dsol.terminal.Agv

Bug Category Details Line Priority
new nl.tudelft.simulation.examples.dsol.terminal.Agv(DevsSimulatorInterface, String, long, DistContinuous) may expose internal representation by storing an externally mutable object into Agv.agvTime MALICIOUS_CODE EI_EXPOSE_REP2 32 Medium

nl.tudelft.simulation.examples.dsol.terminal.ConsoleRunnerTerminal

Bug Category Details Line Priority
Dead store to seed in new nl.tudelft.simulation.examples.dsol.terminal.ConsoleRunnerTerminal() STYLE DLS_DEAD_LOCAL_STORE 46 Medium
nl.tudelft.simulation.examples.dsol.terminal.ConsoleRunnerTerminal.notify(Event) invokes System.exit(...), which shuts down the entire virtual machine BAD_PRACTICE DM_EXIT 77 Medium
nl.tudelft.simulation.examples.dsol.terminal.ConsoleRunnerTerminal.terminate(DevsSimulator, int, int, int) invokes System.exit(...), which shuts down the entire virtual machine BAD_PRACTICE DM_EXIT 66 Medium

nl.tudelft.simulation.examples.dsol.terminal.Container

Bug Category Details Line Priority
Exception thrown in class nl.tudelft.simulation.examples.dsol.terminal.Container at new nl.tudelft.simulation.examples.dsol.terminal.Container(DevsSimulatorInterface, int, QuayCrane, Agv, Ship) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 58 Medium
new nl.tudelft.simulation.examples.dsol.terminal.Container(DevsSimulatorInterface, int, QuayCrane, Agv, Ship) may expose internal representation by storing an externally mutable object into Container.agv MALICIOUS_CODE EI_EXPOSE_REP2 49 Medium
new nl.tudelft.simulation.examples.dsol.terminal.Container(DevsSimulatorInterface, int, QuayCrane, Agv, Ship) may expose internal representation by storing an externally mutable object into Container.qc MALICIOUS_CODE EI_EXPOSE_REP2 48 Medium
new nl.tudelft.simulation.examples.dsol.terminal.Container(DevsSimulatorInterface, int, QuayCrane, Agv, Ship) may expose internal representation by storing an externally mutable object into Container.simulator MALICIOUS_CODE EI_EXPOSE_REP2 46 Medium
Inconsistent synchronization of nl.tudelft.simulation.examples.dsol.terminal.Container.phase; locked 80% of time MT_CORRECTNESS IS2_INCONSISTENT_SYNC 113 Medium

nl.tudelft.simulation.examples.dsol.terminal.ExperimentRunnerTerminal

Bug Category Details Line Priority
Exception thrown in class nl.tudelft.simulation.examples.dsol.terminal.ExperimentRunnerTerminal at new nl.tudelft.simulation.examples.dsol.terminal.ExperimentRunnerTerminal() will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 76 Medium
nl.tudelft.simulation.examples.dsol.terminal.ExperimentRunnerTerminal.notify(Event) invokes System.exit(...), which shuts down the entire virtual machine BAD_PRACTICE DM_EXIT 123 Medium
nl.tudelft.simulation.examples.dsol.terminal.ExperimentRunnerTerminal.terminate(DevsSimulator, int, int, int, Terminal) invokes System.exit(...), which shuts down the entire virtual machine BAD_PRACTICE DM_EXIT 107 Medium

nl.tudelft.simulation.examples.dsol.terminal.IntResource

Bug Category Details Line Priority
This write of the 64-bit primitive variable "capacity" may not be atomic MT_CORRECTNESS AT_NONATOMIC_64BIT_PRIMITIVE 146 Medium
new nl.tudelft.simulation.examples.dsol.terminal.IntResource(DevsSimulatorInterface, String, long) may expose internal representation by storing an externally mutable object into IntResource.simulator MALICIOUS_CODE EI_EXPOSE_REP2 79 Medium
Inconsistent synchronization of nl.tudelft.simulation.examples.dsol.terminal.IntResource.claimedCapacity; locked 57% of time MT_CORRECTNESS IS2_INCONSISTENT_SYNC 118 Medium

nl.tudelft.simulation.examples.dsol.terminal.QuayCrane

Bug Category Details Line Priority
new nl.tudelft.simulation.examples.dsol.terminal.QuayCrane(DevsSimulatorInterface, String, long, DistContinuous) may expose internal representation by storing an externally mutable object into QuayCrane.qcTime MALICIOUS_CODE EI_EXPOSE_REP2 32 Medium

nl.tudelft.simulation.examples.dsol.terminal.Terminal

Bug Category Details Line Priority
Exception thrown in class nl.tudelft.simulation.examples.dsol.terminal.Terminal at new nl.tudelft.simulation.examples.dsol.terminal.Terminal(DevsSimulatorInterface, int) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 55 Medium

nl.tudelft.simulation.examples.dsol.timesharedcomputer.Cpu

Bug Category Details Line Priority
Shared primitive variable "status" in one thread may not yield the value of the most recent write from another thread MT_CORRECTNESS AT_STALE_THREAD_WRITE_OF_PRIMITIVE 121 Medium
nl.tudelft.simulation.examples.dsol.timesharedcomputer.Cpu.getQueue() may expose internal representation by returning Cpu.queue MALICIOUS_CODE EI_EXPOSE_REP 77 Medium

nl.tudelft.simulation.examples.dsol.timesharedcomputer.Job

Bug Category Details Line Priority
nl.tudelft.simulation.examples.dsol.timesharedcomputer.Job.getOwner() may expose internal representation by returning Job.source MALICIOUS_CODE EI_EXPOSE_REP 66 Medium
new nl.tudelft.simulation.examples.dsol.timesharedcomputer.Job(String, DistContinuous, FlowBlock, DevsSimulatorInterface) may expose internal representation by storing an externally mutable object into Job.source MALICIOUS_CODE EI_EXPOSE_REP2 37 Medium
Unread field: nl.tudelft.simulation.examples.dsol.timesharedcomputer.Job.creationTime PERFORMANCE URF_UNREAD_FIELD 18 Medium

nl.tudelft.simulation.examples.dsol.timesharedcomputer.Terminal

Bug Category Details Line Priority
Unchecked/unconfirmed cast from nl.tudelft.simulation.dsol.formalisms.flow.Entity<java.lang.Double> to nl.tudelft.simulation.examples.dsol.timesharedcomputer.Job in nl.tudelft.simulation.examples.dsol.timesharedcomputer.Terminal.receiveEntity(Entity) STYLE BC_UNCONFIRMED_CAST 54 Medium
new nl.tudelft.simulation.examples.dsol.timesharedcomputer.Terminal(DevsSimulatorInterface, FlowBlock, DistContinuous, DistContinuous) may expose internal representation by storing an externally mutable object into Terminal.jobSize MALICIOUS_CODE EI_EXPOSE_REP2 46 Medium
new nl.tudelft.simulation.examples.dsol.timesharedcomputer.Terminal(DevsSimulatorInterface, FlowBlock, DistContinuous, DistContinuous) may expose internal representation by storing an externally mutable object into Terminal.thinkDelay MALICIOUS_CODE EI_EXPOSE_REP2 45 Medium