The following document contains the results of SpotBugs
SpotBugs Version is 4.7.1
Threshold is medium
Effort is default
Classes | Bugs | Errors | Missing Classes |
---|---|---|---|
58 | 27 | 0 | 0 |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Do not catch NullPointerException like in org.djutils.draw.line.Bezier.bezier(double, Point2d[]) | STYLE | DCN_NULLPOINTER_EXCEPTION | 413 | Medium |
Do not catch NullPointerException like in org.djutils.draw.line.Bezier.bezier(double, Point3d[]) | STYLE | DCN_NULLPOINTER_EXCEPTION | 788 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to dk in org.djutils.draw.line.Clothoid.buildClothoid(double, double, double, double, double, double) | STYLE | DLS_DEAD_LOCAL_STORE | 704 | Medium |
Dead store to k in org.djutils.draw.line.Clothoid.buildClothoid(double, double, double, double, double, double) | STYLE | DLS_DEAD_LOCAL_STORE | 703 | Medium |
Dead store to dk_1 in org.djutils.draw.line.Clothoid.buildClothoidMoreResults(double, double, double, double, double, double) | STYLE | DLS_DEAD_LOCAL_STORE | 812 | Medium |
Dead store to dk_2 in org.djutils.draw.line.Clothoid.buildClothoidMoreResults(double, double, double, double, double, double) | STYLE | DLS_DEAD_LOCAL_STORE | 813 | Medium |
Dead store to k_1 in org.djutils.draw.line.Clothoid.buildClothoidMoreResults(double, double, double, double, double, double) | STYLE | DLS_DEAD_LOCAL_STORE | 808 | Medium |
Dead store to k_2 in org.djutils.draw.line.Clothoid.buildClothoidMoreResults(double, double, double, double, double, double) | STYLE | DLS_DEAD_LOCAL_STORE | 809 | Medium |
Dead store to l_1 in org.djutils.draw.line.Clothoid.buildClothoidMoreResults(double, double, double, double, double, double) | STYLE | DLS_DEAD_LOCAL_STORE | 804 | Medium |
Dead store to l_2 in org.djutils.draw.line.Clothoid.buildClothoidMoreResults(double, double, double, double, double, double) | STYLE | DLS_DEAD_LOCAL_STORE | 805 | Medium |
Useless condition: it's known that p > 0 at this point | STYLE | UC_USELESS_CONDITION | 497 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Format string should use %n rather than \n in org.djutils.draw.line.LineSegment2d.toPlot() | BAD_PRACTICE | VA_FORMAT_STRING_USES_NEWLINE | 234 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Using floating-point loop counters can lead to unexpected behavior. | CORRECTNESS | FL_FLOATS_AS_LOOP_COUNTERS | 839 | Medium |
Using floating-point loop counters can lead to unexpected behavior. | CORRECTNESS | FL_FLOATS_AS_LOOP_COUNTERS | 864 | Medium |
Using floating-point loop counters can lead to unexpected behavior. | CORRECTNESS | FL_FLOATS_AS_LOOP_COUNTERS | 623 | Medium |
Using floating-point loop counters can lead to unexpected behavior. | CORRECTNESS | FL_FLOATS_AS_LOOP_COUNTERS | 1008 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Using floating-point loop counters can lead to unexpected behavior. | CORRECTNESS | FL_FLOATS_AS_LOOP_COUNTERS | 863 | Medium |
Using floating-point loop counters can lead to unexpected behavior. | CORRECTNESS | FL_FLOATS_AS_LOOP_COUNTERS | 888 | Medium |
Using floating-point loop counters can lead to unexpected behavior. | CORRECTNESS | FL_FLOATS_AS_LOOP_COUNTERS | 641 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Possible null pointer dereference of line1P1 in org.djutils.draw.point.Point2d.intersectionOfLineSegments(Point2d, Point2d, Point2d, Point2d) | CORRECTNESS | NP_NULL_ON_SOME_PATH | 348 | Medium |
Possible null pointer dereference of line1P2 in org.djutils.draw.point.Point2d.intersectionOfLineSegments(Point2d, Point2d, Point2d, Point2d) | CORRECTNESS | NP_NULL_ON_SOME_PATH | 348 | Medium |
Possible null pointer dereference of line2P1 in org.djutils.draw.point.Point2d.intersectionOfLineSegments(Point2d, Point2d, Point2d, Point2d) | CORRECTNESS | NP_NULL_ON_SOME_PATH | 348 | Medium |
Possible null pointer dereference of line1P1 in org.djutils.draw.point.Point2d.intersectionOfLines(Point2d, Point2d, Point2d, Point2d) | CORRECTNESS | NP_NULL_ON_SOME_PATH | 327 | Medium |
Possible null pointer dereference of line1P2 in org.djutils.draw.point.Point2d.intersectionOfLines(Point2d, Point2d, Point2d, Point2d) | CORRECTNESS | NP_NULL_ON_SOME_PATH | 327 | Medium |
Possible null pointer dereference of line2P1 in org.djutils.draw.point.Point2d.intersectionOfLines(Point2d, Point2d, Point2d, Point2d) | CORRECTNESS | NP_NULL_ON_SOME_PATH | 327 | Medium |
Possible null pointer dereference of line2P2 on branch that might be infeasible in org.djutils.draw.point.Point2d.intersectionOfLineSegments(Point2d, Point2d, Point2d, Point2d) | STYLE | NP_NULL_ON_SOME_PATH_MIGHT_BE_INFEASIBLE | 348 | Medium |
Possible null pointer dereference of line2P2 on branch that might be infeasible in org.djutils.draw.point.Point2d.intersectionOfLines(Point2d, Point2d, Point2d, Point2d) | STYLE | NP_NULL_ON_SOME_PATH_MIGHT_BE_INFEASIBLE | 327 | Medium |