public static boolean isCglibRenamedMethod(Method renamedMethod){
  String name=renamedMethod.getName();
  if (name.startsWith(CGLIB_RENAMED_METHOD_PREFIX)) {
    int i=name.length() - 1;
    while (i >= 0 && Character.isDigit(name.charAt(i))) {
      i--;
    }
    return ((i > CGLIB_RENAMED_METHOD_PREFIX.length()) && (i < name.length() - 1) && (name.charAt(i) == '$'));
  }
  return false;
}

public static boolean isCglibRenamedMethod ( Method renamedMethod ) { String name = renamedMethod . getName ( ) ; if ( name . startsWith ( CGLIB_RENAMED_METHOD_PREFIX ) ) { int i = name . length ( ) - 1 ; while ( i >= 0 && Character . isDigit ( name . charAt ( i ) ) ) { i -- ; } return ( ( i > CGLIB_RENAMED_METHOD_PREFIX . length ( ) ) && ( i < name . length ( ) - 1 ) && ( name . charAt ( i ) == '$' ) ) ; } return false ; }
determine whether the given method is a cglib ' renamed ' method , following the pattern " cglib $ methodname $ 0 " .
