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 |
---|---|---|---|
39 | 4 | 0 | 0 |
Class | Bugs |
---|---|
org.opentrafficsim.core.animation.gtu.colorer.IDGTUColorer | 1 |
org.opentrafficsim.road.gtu.colorer.GTUTypeColorer | 3 |
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 |
---|---|---|---|---|
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 |
org.opentrafficsim.road.gtu.colorer.GTUTypeColorer.getLegend() makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 139 | Medium |