private String formatType(Object typeRep){
  StringTokenizer tokenizer=new StringTokenizer(typeRep.toString(),"()<>[], ",true);
  StringBuilder sb=new StringBuilder();
  while (tokenizer.hasMoreTokens()) {
    String token=tokenizer.nextToken();
    if (token.length() == 1 || token.lastIndexOf('.') == -1)     sb.append(token);
 else {
      int index=token.lastIndexOf('.');
      sb.append(token.substring(index + 1));
    }
  }
  return sb.toString();
}

private String formatType ( Object typeRep ) { StringTokenizer tokenizer = new StringTokenizer ( typeRep . toString ( ) , "()<>[], " , true ) ; StringBuilder sb = new StringBuilder ( ) ; while ( tokenizer . hasMoreTokens ( ) ) { String token = tokenizer . nextToken ( ) ; if ( token . length ( ) == 1 || token . lastIndexOf ( '.' ) == - 1 ) sb . append ( token ) ; else { int index = token . lastIndexOf ( '.' ) ; sb . append ( token . substring ( index + 1 ) ) ; } } return sb . toString ( ) ; }
outputs the simple name of the type
