static void checkDesc(final String desc,final boolean canBeVoid){
  int end=checkDesc(desc,0,canBeVoid);
  if (end != desc.length()) {
    throw new IllegalArgumentException("Invalid descriptor: " + desc);
  }
}

static void checkDesc ( final String desc , final boolean canBeVoid ) { int end = checkDesc ( desc , 0 , canBeVoid ) ; if ( end != desc . length ( ) ) { throw new IllegalArgumentException ( "Invalid descriptor: " + desc ) ; } }
checks that the given string is a valid type descriptor .
