Class FindIncreasedAccessibilityOfMethods
java.lang.Object
edu.umd.cs.findbugs.detect.FindIncreasedAccessibilityOfMethods
- All Implemented Interfaces:
Detector, Priorities
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BugReporterprivate static final org.apache.bcel.classfile.JavaClassprivate static final Stringprivate static final Stringprivate static final StringFields inherited from interface Priorities
EXP_PRIORITY, HIGH_PRIORITY, IGNORE_PRIORITY, LOW_PRIORITY, NORMAL_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanisCloneMethodFromCloneable(org.apache.bcel.classfile.JavaClass javaClass, org.apache.bcel.classfile.Method method) private booleanisPackagePrivate(org.apache.bcel.classfile.Method method) voidreport()This method is called after all classes to be visited.private voidreportBug(org.apache.bcel.classfile.JavaClass cls, org.apache.bcel.classfile.Method m, String superAccessibility, String subClassAccessibility) voidvisitClassContext(ClassContext classContext) Visit the ClassContext for a class which should be analyzed for instances of bug patterns.private voidvisitMethod(org.apache.bcel.classfile.JavaClass cls, org.apache.bcel.classfile.Method m)
-
Field Details
-
PACKAGE_PRIVATE
- See Also:
-
PROTECTED
- See Also:
-
PUBLIC
- See Also:
-
CLONEABLE
private static final org.apache.bcel.classfile.JavaClass CLONEABLE -
bugReporter
-
-
Constructor Details
-
FindIncreasedAccessibilityOfMethods
-
-
Method Details
-
visitClassContext
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
-
visitMethod
private void visitMethod(org.apache.bcel.classfile.JavaClass cls, org.apache.bcel.classfile.Method m) -
reportBug
-
report
-
isPackagePrivate
private boolean isPackagePrivate(org.apache.bcel.classfile.Method method) -
isCloneMethodFromCloneable
private boolean isCloneMethodFromCloneable(org.apache.bcel.classfile.JavaClass javaClass, org.apache.bcel.classfile.Method method)
-