public static boolean isOn(String option){
  if (args == null) {
    return false;
  }
 else {
    int n=0;
    option=option.toLowerCase(Locale.ENGLISH);
    if (args.indexOf("all") != -1) {
      return true;
    }
 else     if ((n=args.indexOf("ssl")) != -1) {
      if (args.indexOf("sslctx",n) == -1) {
        if (!(option.equals("data") || option.equals("packet") || option.equals("plaintext"))) {
          return true;
        }
      }
    }
    return (args.indexOf(option) != -1);
  }
}

public static boolean isOn ( String option ) { if ( args == null ) { return false ; } else { int n = 0 ; option = option . toLowerCase ( Locale . ENGLISH ) ; if ( args . indexOf ( "all" ) != - 1 ) { return true ; } else if ( ( n = args . indexOf ( "ssl" ) ) != - 1 ) { if ( args . indexOf ( "sslctx" , n ) == - 1 ) { if ( ! ( option . equals ( "data" ) || option . equals ( "packet" ) || option . equals ( "plaintext" ) ) ) { return true ; } } } return ( args . indexOf ( option ) != - 1 ) ; } }
true if the property " javax . net . debug " contains the string " option " .
