public static String makeDescriptor(Class[] params,Class retType){
  StringBuffer sbuf=new StringBuffer();
  sbuf.append('(');
  for (int i=0; i < params.length; i++)   makeDesc(sbuf,params[i]);
  sbuf.append(')');
  if (retType != null)   makeDesc(sbuf,retType);
  return sbuf.toString();
}

public static String makeDescriptor ( Class [ ] params , Class retType ) { StringBuffer sbuf = new StringBuffer ( ) ; sbuf . append ( '(' ) ; for ( int i = 0 ; i < params . length ; i ++ ) makeDesc ( sbuf , params [ i ] ) ; sbuf . append ( ')' ) ; if ( retType != null ) makeDesc ( sbuf , retType ) ; return sbuf . toString ( ) ; }
makes a descriptor for a given method .
