private void checkMethod(String methodName, String signature) {
    JavaClass javaClass = checkClass();
    if (javaClass == null) {
      return;
    }

    for (JavaClass current = javaClass; current != null; current = getSuperclass(current)) {
      for (Method method : current.getMethods()) {
        if (methodName.equals(method.getName()) && signature.equals(method.getSignature())) {
          // method has been found - check if it's beta
          if (isBeta(method.getAnnotationEntries())) {
            bugReporter.reportBug(createBugInstance(BETA_METHOD_USAGE).addCalledMethod(this));
          }
          return;
        }
      }
    }
    if (!javaClass.isAbstract()) {
      bugReporter.logError(
          "Can't locate method " + javaClass.getClassName() + "." + methodName + signature);
    }
  }
private void checkMethod ( String methodName , String signature ) { JavaClass javaClass = checkClass ( ) ; if ( javaClass == null ) { return ; } for ( JavaClass current = javaClass ; current != null ; current = getSuperclass ( current ) ) { for ( Method method : current . getMethods ( ) ) { if ( methodName . equals ( method . getName ( ) ) && signature . equals ( method . getSignature ( ) ) ) { if ( isBeta ( method . getAnnotationEntries ( ) ) ) { bugReporter . reportBug ( createBugInstance ( BETA_METHOD_USAGE ) . addCalledMethod ( this ) ) ; } return ; } } } if ( ! javaClass . isAbstract ( ) ) { bugReporter . logError ( "Can't locate method " + javaClass . getClassName ( ) + "." + methodName + signature ) ; } }
Reports bug in case the method defined by the given name and signature is {@link Beta}.

<p>The method is searched in current class and all super classses as well.