Class CheckBcel


  • public class CheckBcel
    extends java.lang.Object
    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 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
    • Constructor Detail

      • CheckBcel

        public CheckBcel()
    • 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