The following document contains the results of FindBugs
FindBugs Version is 3.0.1
Threshold is medium
Effort is min
Class | Bugs |
---|---|
org.opentrafficsim.core.animation.gtu.colorer.IDGTUColorer | 1 |
org.opentrafficsim.core.animation.network.NetworkAnimation | 1 |
org.opentrafficsim.road.gtu.colorer.GTUTypeColorer | 2 |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.opentrafficsim.core.animation.gtu.colorer.IDGTUColorer.LEGEND is a mutable collection | MALICIOUS_CODE | MS_MUTABLE_COLLECTION | 31 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.opentrafficsim.core.animation.network.NetworkAnimation.notify(EventInterface) seems to be useless | STYLE | UC_USELESS_VOID_METHOD | 161 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Redundant nullcheck of color, which is known to be non-null in org.opentrafficsim.road.gtu.colorer.GTUTypeColorer.getColor(GTU) | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE | 124 | High |
Nullcheck of gtuType at line 119 of value previously dereferenced in org.opentrafficsim.road.gtu.colorer.GTUTypeColorer.getColor(GTU) | CORRECTNESS | RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE | 118 | Medium |