Package edu.umd.cs.findbugs
Class CheckBcel
- java.lang.Object
-
- edu.umd.cs.findbugs.CheckBcel
-
public class CheckBcel extends java.lang.ObjectCheck 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 Modifier and Type Field Description private static org.slf4j.LoggerLOGprivate static java.lang.StringORG_APACHE_BCEL_CLASSFILE_EMPTY_VISITORprivate static java.lang.StringORG_APACHE_BCEL_CONSTANTSprivate static java.lang.StringORG_APACHE_BCEL_GENERIC_OBJECT_TYPEprivate static java.lang.StringORG_APACHE_BCEL_GENERIC_TYPEprivate static java.lang.StringORG_APACHE_BCEL_REPOSITORY
-
Constructor Summary
Constructors Constructor Description CheckBcel()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancheck()Check that the BCEL classes present seem to be the right ones.private static voiderror(java.lang.String cname)Output an appropriate error when a BCEL class looks wrong.private static booleanisFinal(java.lang.Class<?> c)Check whether given Class is declared final
-
-
-
Field Detail
-
LOG
private static final org.slf4j.Logger LOG
-
ORG_APACHE_BCEL_REPOSITORY
private static final java.lang.String ORG_APACHE_BCEL_REPOSITORY
- See Also:
- Constant Field Values
-
ORG_APACHE_BCEL_CLASSFILE_EMPTY_VISITOR
private static final java.lang.String ORG_APACHE_BCEL_CLASSFILE_EMPTY_VISITOR
- See Also:
- Constant Field Values
-
ORG_APACHE_BCEL_CONSTANTS
private static final java.lang.String ORG_APACHE_BCEL_CONSTANTS
- See Also:
- Constant Field Values
-
ORG_APACHE_BCEL_GENERIC_TYPE
private static final java.lang.String ORG_APACHE_BCEL_GENERIC_TYPE
- See Also:
- Constant Field Values
-
ORG_APACHE_BCEL_GENERIC_OBJECT_TYPE
private static final java.lang.String ORG_APACHE_BCEL_GENERIC_OBJECT_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
isFinal
private static boolean isFinal(java.lang.Class<?> c)
Check whether given Class is declared final- Parameters:
c- the class to check- Returns:
- true iff Class is declared final
-
error
private static void error(java.lang.String cname)
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
-
-