Package edu.umd.cs.findbugs
Class CheckBcel
java.lang.Object
edu.umd.cs.findbugs.CheckBcel
Check that the BCEL classes present seem to be the right ones. Specifically,
we check whether the ones extended in FindBugs code are non-final. The
following BCEL classes are extended in FindBugs code:
org.apache.bcel.generic.ObjectType; org.apache.bcel.generic.Type;
org.apache.bcel.Constants; org.apache.bcel.classfile.EmptyVisitor
org.apache.bcel.Repository;
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
check()
Check that the BCEL classes present seem to be the right ones.private static void
Output an appropriate error when a BCEL class looks wrong.private static boolean
Check whether given Class is declared final
-
Field Details
-
LOG
private static final org.slf4j.Logger LOG -
ORG_APACHE_BCEL_REPOSITORY
- See Also:
-
ORG_APACHE_BCEL_CLASSFILE_EMPTY_VISITOR
- See Also:
-
ORG_APACHE_BCEL_CONSTANTS
- See Also:
-
ORG_APACHE_BCEL_GENERIC_TYPE
- See Also:
-
ORG_APACHE_BCEL_GENERIC_OBJECT_TYPE
- See Also:
-
-
Constructor Details
-
CheckBcel
public CheckBcel()
-
-
Method Details
-
isFinal
Check whether given Class is declared final- Parameters:
c
- the class to check- Returns:
- true iff Class is declared final
-
error
Output an appropriate error when a BCEL class looks wrong.- Parameters:
cname
- name of the BCEL class
-
check
public static boolean check()Check that the BCEL classes present seem to be the right ones. Specifically, we check whether the ones extended in FindBugs code are non-final.- Returns:
- true iff all checks passed
-