Package edu.umd.cs.findbugs.props
Class AbstractWarningProperty
- java.lang.Object
-
- edu.umd.cs.findbugs.props.AbstractWarningProperty
-
- All Implemented Interfaces:
WarningProperty
- Direct Known Subclasses:
DeadLocalStoreProperty,DoomedCodeWarningProperty,GeneralWarningProperty,InconsistentSyncWarningProperty,Naming.NamingProperty,NonNullReturnProperty,NullArgumentWarningProperty,NullDerefProperty,RefComparisonWarningProperty
public abstract class AbstractWarningProperty extends java.lang.Object implements WarningProperty
Abstract base class for implementing warning properties.- Author:
- David Hovemeyer
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractWarningProperty(java.lang.String shortName, PriorityAdjustment priorityAdjustment)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()Get the fully qualified name of the property.PriorityAdjustmentgetPriorityAdjustment()Get the priority adjustment: i.e., the effect that this warning property is expected to have on the likelihood that the warning is real, benign, or a false positive.
-
-
-
Constructor Detail
-
AbstractWarningProperty
protected AbstractWarningProperty(java.lang.String shortName, PriorityAdjustment priorityAdjustment)Constructor.- Parameters:
shortName- the short name of the property; will be qualified with the full name of the warning property classpriorityAdjustment- the priority adjustment
-
-
Method Detail
-
getPriorityAdjustment
public PriorityAdjustment getPriorityAdjustment()
Description copied from interface:WarningPropertyGet the priority adjustment: i.e., the effect that this warning property is expected to have on the likelihood that the warning is real, benign, or a false positive.- Specified by:
getPriorityAdjustmentin interfaceWarningProperty- Returns:
- the priority adjustment
-
getName
public java.lang.String getName()
Description copied from interface:WarningPropertyGet the fully qualified name of the property. Should be full class name, ".", followed by the descriptive name of the property.- Specified by:
getNamein interfaceWarningProperty- Returns:
- fully qualified name of the property
-
-