public static String appendParameter(CtClass type,String descriptor){
  int i=descriptor.indexOf(')');
  if (i < 0)   return descriptor;
 else {
    StringBuffer newdesc=new StringBuffer();
    newdesc.append(descriptor.substring(0,i));
    toDescriptor(newdesc,type);
    newdesc.append(descriptor.substring(i));
    return newdesc.toString();
  }
}

public static String appendParameter ( CtClass type , String descriptor ) { int i = descriptor . indexOf ( ')' ) ; if ( i < 0 ) return descriptor ; else { StringBuffer newdesc = new StringBuffer ( ) ; newdesc . append ( descriptor . substring ( 0 , i ) ) ; toDescriptor ( newdesc , type ) ; newdesc . append ( descriptor . substring ( i ) ) ; return newdesc . toString ( ) ; } }
appends a parameter type to the parameter list represented by the given descriptor . the appended parameter becomes the last parameter .
