public static boolean isSafeBytecodeName(String s){
  if (s.length() == 0)   return false;
  for (  char xc : DANGEROUS_CHARS_A) {
    if (xc == ESCAPE_C)     continue;
    if (s.indexOf(xc) >= 0)     return false;
  }
  return true;
}

public static boolean isSafeBytecodeName ( String s ) { if ( s . length ( ) == 0 ) return false ; for ( char xc : DANGEROUS_CHARS_A ) { if ( xc == ESCAPE_C ) continue ; if ( s . indexOf ( xc ) >= 0 ) return false ; } return true ; }
report whether a simple name is safe as a bytecode name . such names are acceptable in class files as class , method , and field names . additionally , they are free of " dangerous " characters , even if those characters are legal in some ( or all ) names in class files .
