static String toGenericSignature(final Type type){
  StringBuilder sb=new StringBuilder();
  toGenericSignature(sb,type);
  return sb.toString();
}

static String toGenericSignature ( final Type type ) { StringBuilder sb = new StringBuilder ( ) ; toGenericSignature ( sb , type ) ; return sb . toString ( ) ; }
converts a type to a jvm signature with the type parameters replaced .
