edu.umd.cs.findbugs.detect
public class FindUselessControlFlow extends BytecodeScanningDetector implements StatelessDetector
if (argv.length == 1); System.out.println("Hello, " + argv[0]);In this kind of bug, we'll see an ifcmp instruction where the IF target is the same as the fall-through target.
The idea for this detector came from Richard P. King, and the idea of looking for if instructions with identical branch and fall-through targets is from Mike Fagan.
Constructor Summary | |
---|---|
FindUselessControlFlow(BugReporter bugReporter) |