edu.umd.cs.findbugs.detect
Class FindNullDeref.RedundantBranch

java.lang.Object
  extended by edu.umd.cs.findbugs.detect.FindNullDeref.RedundantBranch
Enclosing class:
FindNullDeref

private static class FindNullDeref.RedundantBranch
extends java.lang.Object

An instruction recorded as a redundant reference comparison. We keep track of the line number, in order to ensure that if the branch was duplicated, all duplicates are determined in the same way. (If they aren't, then we don't report it.)


Field Summary
 org.apache.bcel.generic.InstructionHandle handle
           
 int lineNumber
           
 boolean redundantNullCheck
           
 
Constructor Summary
FindNullDeref.RedundantBranch(org.apache.bcel.generic.InstructionHandle handle, int lineNumber, boolean redundantNullCheck)
           
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

handle

public final org.apache.bcel.generic.InstructionHandle handle

lineNumber

public final int lineNumber

redundantNullCheck

public boolean redundantNullCheck
Constructor Detail

FindNullDeref.RedundantBranch

public FindNullDeref.RedundantBranch(org.apache.bcel.generic.InstructionHandle handle,
                                     int lineNumber,
                                     boolean redundantNullCheck)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object