Package edu.umd.cs.findbugs.props
Class WarningPropertyUtil
java.lang.Object
edu.umd.cs.findbugs.props.WarningPropertyUtil
Utility methods for creating general warning properties.
- Author:
- David Hovemeyer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddPropertiesForDataMining(WarningPropertySet<WarningProperty> propertySet, ClassContext classContext, org.apache.bcel.classfile.Method method, Location location) Add all relevant general warning properties to the given property set for the given Location.static voidaddPropertiesForLocation(WarningPropertySet<WarningProperty> propertySet, ClassContext classContext, org.apache.bcel.classfile.Method method, int pc) Add all relevant general warning properties to the given property set for the given Location.
-
Constructor Details
-
WarningPropertyUtil
public WarningPropertyUtil()
-
-
Method Details
-
addPropertiesForDataMining
public static void addPropertiesForDataMining(WarningPropertySet<WarningProperty> propertySet, ClassContext classContext, org.apache.bcel.classfile.Method method, Location location) Add all relevant general warning properties to the given property set for the given Location.- Parameters:
propertySet- the WarningPropertySetclassContext- the ClassContextmethod- the Methodlocation- the Location
-
addPropertiesForLocation
public static void addPropertiesForLocation(WarningPropertySet<WarningProperty> propertySet, ClassContext classContext, org.apache.bcel.classfile.Method method, int pc) Add all relevant general warning properties to the given property set for the given Location.- Parameters:
propertySet- the WarningPropertySetclassContext- the ClassContextmethod- the Methodpc- the bytecode offset of an instruction to get properties for
-