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) BugAccumulator
accumulator
(package private) BugReporter
bugReporter
(package private) ClassDescriptor
concurrentMapDescriptor
(package private) static boolean
DEBUG
(package private) static java.util.HashSet<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 void
analyzeMethod(ClassContext classContext, org.apache.bcel.classfile.Method method)
private boolean
extendsConcurrentMap(java.lang.String className)
private static int
getPriorityForBeingMutable(org.apache.bcel.generic.Type type)
void
report()
This method is called after all classes to be visited.void
visitClassContext(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 java.util.HashSet<java.lang.String> immutableClassNames
-
-
Constructor Detail
-
DontIgnoreResultOfPutIfAbsent
public DontIgnoreResultOfPutIfAbsent(BugReporter bugReporter)
-
-
Method Detail
-
report
public void report()
Description copied from interface:Detector
This 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:Detector
Visit the ClassContext for a class which should be analyzed for instances of bug patterns.- Specified by:
visitClassContext
in 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)
-
-