Package edu.umd.cs.findbugs.ba.npe
Class RedundantBranch
java.lang.Object
edu.umd.cs.findbugs.ba.npe.RedundantBranch
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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRedundantBranch
(Location location, int lineNumber, IsNullValue firstValue) Constructor.RedundantBranch
(Location location, int lineNumber, IsNullValue firstValue, IsNullValue secondValue) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
setInfeasibleEdge
(Edge infeasibleEdge) Set the edge which has been determined to be infeasible.toString()
-
Field Details
-
location
-
lineNumber
public final int lineNumber -
firstValue
-
secondValue
-
infeasibleEdge
-
-
Constructor Details
-
RedundantBranch
public RedundantBranch(Location location, int lineNumber, IsNullValue firstValue, IsNullValue secondValue) Constructor.- Parameters:
location
- Location of ref comparisonlineNumber
- line number of ref comparisonfirstValue
- first value comparedsecondValue
- second value compared
-
RedundantBranch
Constructor.- Parameters:
location
- Location of ref comparisonlineNumber
- line number of ref comparisonfirstValue
- first value compared
-
-
Method Details