Class CheckBcel

java.lang.Object
edu.umd.cs.findbugs.CheckBcel

public class CheckBcel extends 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 Details

    • LOG

      private static final org.slf4j.Logger LOG
    • ORG_APACHE_BCEL_REPOSITORY

      private static final String ORG_APACHE_BCEL_REPOSITORY
      See Also:
    • ORG_APACHE_BCEL_CLASSFILE_EMPTY_VISITOR

      private static final String ORG_APACHE_BCEL_CLASSFILE_EMPTY_VISITOR
      See Also:
    • ORG_APACHE_BCEL_CONSTANTS

      private static final String ORG_APACHE_BCEL_CONSTANTS
      See Also:
    • ORG_APACHE_BCEL_GENERIC_TYPE

      private static final String ORG_APACHE_BCEL_GENERIC_TYPE
      See Also:
    • ORG_APACHE_BCEL_GENERIC_OBJECT_TYPE

      private static final String ORG_APACHE_BCEL_GENERIC_OBJECT_TYPE
      See Also:
  • Constructor Details

    • CheckBcel

      public CheckBcel()
  • Method Details

    • isFinal

      private static boolean isFinal(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(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