public static @SlashedClassName String extractClassName(String originalName){
  String name=originalName;
  if (name.charAt(0) != '[' && name.charAt(name.length() - 1) != ';') {
    return name;
  }
  while (name.charAt(0) == '[') {
    name=name.substring(1);
  }
  if (name.charAt(0) == 'L' && name.charAt(name.length() - 1) == ';') {
    name=name.substring(1,name.length() - 1);
  }
  if (name.charAt(0) == '[') {
    throw new IllegalArgumentException("Bad class name: " + originalName);
  }
  return name;
}

public static @ SlashedClassName String extractClassName ( String originalName ) { String name = originalName ; if ( name . charAt ( 0 ) != '[' && name . charAt ( name . length ( ) - 1 ) != ';' ) { return name ; } while ( name . charAt ( 0 ) == '[' ) { name = name . substring ( 1 ) ; } if ( name . charAt ( 0 ) == 'L' && name . charAt ( name . length ( ) - 1 ) == ';' ) { name = name . substring ( 1 , name . length ( ) - 1 ) ; } if ( name . charAt ( 0 ) == '[' ) { throw new IllegalArgumentException ( "Bad class name: " + originalName ) ; } return name ; }
extract a slashed classname from a jvm classname or signature .
