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 |
|---|---|---|---|
| 53 | 11 | 0 | 0 |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Unread field: cn.denghanxi.assignment.s44.SeamCarver.energyMap | PERFORMANCE | URF_UNREAD_FIELD | 24 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Return value of length() ignored, but method has no side effect | STYLE | RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT | 67 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Private method cn.denghanxi.assignment.s55.MoveToFront.swimChar(byte[], int) is never called | PERFORMANCE | UPM_UNCALLED_PRIVATE_METHOD | 64 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Dead store to fordFulkerson in cn.denghanxi.assignment.s604.BaseballElimination.isNonTrivialEliminate(String) | STYLE | DLS_DEAD_LOCAL_STORE | 139 | High |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Dead store to currentDirFile in cn.denghanxi.s42.TinyDAG.getTinyDAG() | STYLE | DLS_DEAD_LOCAL_STORE | 12 | High |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Dead store to currentDirFile in cn.denghanxi.s42.TinyDG.getTinyDG() | STYLE | DLS_DEAD_LOCAL_STORE | 12 | High |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Unused field: cn.denghanxi.s43.EagerPrimMST.integers | PERFORMANCE | UUF_UNUSED_FIELD | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| cn.denghanxi.s43.Edge defines compareTo(Edge) and uses Object.equals() | BAD_PRACTICE | EQ_COMPARETO_USE_OBJECT_EQUALS | 33 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Private method cn.denghanxi.s44.DijkstraSP.relax(DirectedEdge) is never called | PERFORMANCE | UPM_UNCALLED_PRIVATE_METHOD | 65 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Format string should use %n rather than \n in cn.denghanxi.s44.EdgeWeightedDirectedCycle.check(EdgeWeightedDigraph) | BAD_PRACTICE | VA_FORMAT_STRING_USES_NEWLINE | 129 | Medium |
| Format string should use %n rather than \n in cn.denghanxi.s44.EdgeWeightedDirectedCycle.check(EdgeWeightedDigraph) | BAD_PRACTICE | VA_FORMAT_STRING_USES_NEWLINE | 137 | Medium |