Package edu.umd.cs.findbugs.detect
Class DontIgnoreResultOfPutIfAbsent
- java.lang.Object
-
- edu.umd.cs.findbugs.detect.DontIgnoreResultOfPutIfAbsent
-
- All Implemented Interfaces:
Detector,Priorities
public class DontIgnoreResultOfPutIfAbsent extends java.lang.Object implements Detector
-
-
Field Summary
Fields Modifier and Type Field Description (package private) BugAccumulatoraccumulator(package private) BugReporterbugReporter(package private) ClassDescriptorconcurrentMapDescriptor(package private) static booleanDEBUG(package private) static java.util.Set<java.lang.String>immutableClassNames-
Fields inherited from interface edu.umd.cs.findbugs.Priorities
EXP_PRIORITY, HIGH_PRIORITY, IGNORE_PRIORITY, LOW_PRIORITY, NORMAL_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description DontIgnoreResultOfPutIfAbsent(BugReporter bugReporter)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidanalyzeMethod(ClassContext classContext, org.apache.bcel.classfile.Method method)private booleanextendsConcurrentMap(java.lang.String className)private static intgetPriorityForBeingMutable(org.apache.bcel.generic.Type type)voidreport()This method is called after all classes to be visited.voidvisitClassContext(ClassContext classContext)Visit the ClassContext for a class which should be analyzed for instances of bug patterns.
-
-
-
Field Detail
-
bugReporter
final BugReporter bugReporter
-
accumulator
final BugAccumulator accumulator
-
concurrentMapDescriptor
final ClassDescriptor concurrentMapDescriptor
-
DEBUG
static final boolean DEBUG
- See Also:
- Constant Field Values
-
immutableClassNames
@StaticConstant static final java.util.Set<java.lang.String> immutableClassNames
-
-
Constructor Detail
-
DontIgnoreResultOfPutIfAbsent
public DontIgnoreResultOfPutIfAbsent(BugReporter bugReporter)
-
-
Method Detail
-
report
public void report()
Description copied from interface:DetectorThis method is called after all classes to be visited. It should be used by any detectors which accumulate information over all visited classes to generate results.
-
visitClassContext
public void visitClassContext(ClassContext classContext)
Description copied from interface:DetectorVisit the ClassContext for a class which should be analyzed for instances of bug patterns.- Specified by:
visitClassContextin interfaceDetector- Parameters:
classContext- the ClassContext
-
getPriorityForBeingMutable
private static int getPriorityForBeingMutable(org.apache.bcel.generic.Type type)
-
analyzeMethod
private void analyzeMethod(ClassContext classContext, org.apache.bcel.classfile.Method method) throws DataflowAnalysisException, CFGBuilderException
-
extendsConcurrentMap
private boolean extendsConcurrentMap(@DottedClassName java.lang.String className)
-
-