SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 3.1.12

Threshold is medium

Effort is default

Summary

Classes Bugs Errors Missing Classes
53 11 0 0

Files

Class Bugs
cn.denghanxi.assignment.s44.SeamCarver 1
cn.denghanxi.assignment.s55.CircularSuffixArray 1
cn.denghanxi.assignment.s55.MoveToFront 1
cn.denghanxi.assignment.s604.BaseballElimination 1
cn.denghanxi.s42.TinyDAG 1
cn.denghanxi.s42.TinyDG 1
cn.denghanxi.s43.EagerPrimMST 1
cn.denghanxi.s43.Edge 1
cn.denghanxi.s44.DijkstraSP 1
cn.denghanxi.s44.EdgeWeightedDirectedCycle 2

cn.denghanxi.assignment.s44.SeamCarver

Bug Category Details Line Priority
Unread field: cn.denghanxi.assignment.s44.SeamCarver.energyMap PERFORMANCE URF_UNREAD_FIELD 24 Medium

cn.denghanxi.assignment.s55.CircularSuffixArray

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

cn.denghanxi.assignment.s55.MoveToFront

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

cn.denghanxi.assignment.s604.BaseballElimination

Bug Category Details Line Priority
Dead store to fordFulkerson in cn.denghanxi.assignment.s604.BaseballElimination.isNonTrivialEliminate(String) STYLE DLS_DEAD_LOCAL_STORE 139 High

cn.denghanxi.s42.TinyDAG

Bug Category Details Line Priority
Dead store to currentDirFile in cn.denghanxi.s42.TinyDAG.getTinyDAG() STYLE DLS_DEAD_LOCAL_STORE 12 High

cn.denghanxi.s42.TinyDG

Bug Category Details Line Priority
Dead store to currentDirFile in cn.denghanxi.s42.TinyDG.getTinyDG() STYLE DLS_DEAD_LOCAL_STORE 12 High

cn.denghanxi.s43.EagerPrimMST

Bug Category Details Line Priority
Unused field: cn.denghanxi.s43.EagerPrimMST.integers PERFORMANCE UUF_UNUSED_FIELD Medium

cn.denghanxi.s43.Edge

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

cn.denghanxi.s44.DijkstraSP

Bug Category Details Line Priority
Private method cn.denghanxi.s44.DijkstraSP.relax(DirectedEdge) is never called PERFORMANCE UPM_UNCALLED_PRIVATE_METHOD 65 Medium

cn.denghanxi.s44.EdgeWeightedDirectedCycle

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