src/main/java/org/plumelib/bcelutil/BcelUtil.java
public static void checkMgens(final ClassGen gen) {

    if (skipChecks) {
      return;
    }

    Method[] methods = gen.getMethods();
    for (int i = 0; i < methods.length; i++) {
      Method method = methods[i];
      // System.out.println ("Checking method " + method + " in class "
      // + gen.getClassName());
      checkMgen(new MethodGen(method, gen.getClassName(), gen.getConstantPool()));
    }

    // Diagnostic output
    if (false) {
      dumpStackTrace();
      dumpMethods(gen);
    }
  }
public static void checkMgens(final ClassGen gen) {

    if (skipChecks) {
      return;
    }

    Method[] methods = gen.getMethods();
    for (int i = 0; i < methods.length; i++) {
      Method method = methods[i];
      // System.out.println ("Checking method " + method + " in class "
      // + gen.getClassName());
      checkMgen(new MethodGen(method, gen.getClassName(), gen.getConstantPool()));
    }

    // Diagnostic output
    if (false) {
      dumpStackTrace();
      dumpMethods(gen);
    }
  }
Checks all of the methods in gen for consistency.

@param gen the class to check