String renameMethodDesc(String desc){
  if (desc == null) {
    return null;
  }
  Type[] args=Type.getArgumentTypes(desc);
  StringBuilder sb=new StringBuilder("(");
  for (  Type arg : args) {
    String name=renameType(arg);
    sb.append(name);
  }
  sb.append(')');
  Type ret=Type.getReturnType(desc);
  String name=renameType(ret);
  sb.append(name);
  return sb.toString();
}

String renameMethodDesc ( String desc ) { if ( desc == null ) { return null ; } Type [ ] args = Type . getArgumentTypes ( desc ) ; StringBuilder sb = new StringBuilder ( "(" ) ; for ( Type arg : args ) { String name = renameType ( arg ) ; sb . append ( name ) ; } sb . append ( ')' ) ; Type ret = Type . getReturnType ( desc ) ; String name = renameType ( ret ) ; sb . append ( name ) ; return sb . toString ( ) ; }
renames a method descriptor , i . e . applies renametype to all arguments and to the return value .
