@Test(expected = IllegalArgumentException.class) public void testHexToByteIllegalRight() { Utils.hexCharsToByte('0', 'X'); }
public static byte hexCharsToByte(String twoHexDigits) { if (twoHexDigits == null || twoHexDigits.length() != 2) { throw new IllegalArgumentException("URLDecoder: Illegal hex characters : \"" + twoHexDigits + "\""); } return hexCharsToByte(twoHexDigits.charAt(0), twoHexDigits.charAt(1)); }
Utils { public static byte hexCharsToByte(String twoHexDigits) { if (twoHexDigits == null || twoHexDigits.length() != 2) { throw new IllegalArgumentException("URLDecoder: Illegal hex characters : \"" + twoHexDigits + "\""); } return hexCharsToByte(twoHexDigits.charAt(0), twoHexDigits.charAt(1)); } }
Utils { public static byte hexCharsToByte(String twoHexDigits) { if (twoHexDigits == null || twoHexDigits.length() != 2) { throw new IllegalArgumentException("URLDecoder: Illegal hex characters : \"" + twoHexDigits + "\""); } return hexCharsToByte(twoHexDigits.charAt(0), twoHexDigits.charAt(1)); } private  Utils(); }
Utils { public static byte hexCharsToByte(String twoHexDigits) { if (twoHexDigits == null || twoHexDigits.length() != 2) { throw new IllegalArgumentException("URLDecoder: Illegal hex characters : \"" + twoHexDigits + "\""); } return hexCharsToByte(twoHexDigits.charAt(0), twoHexDigits.charAt(1)); } private  Utils(); static String resilientUrlDecode(String input); static byte hexCharsToByte(String twoHexDigits); static byte hexCharsToByte(char c1, char c2); static String decodeApacheHTTPDLogValue(String input); static String makeHTMLEncodedInert(String uriString); static String replaceString(
        final String input,
        final String searchFor,
        final String replaceWith
    ); }
Utils { public static byte hexCharsToByte(String twoHexDigits) { if (twoHexDigits == null || twoHexDigits.length() != 2) { throw new IllegalArgumentException("URLDecoder: Illegal hex characters : \"" + twoHexDigits + "\""); } return hexCharsToByte(twoHexDigits.charAt(0), twoHexDigits.charAt(1)); } private  Utils(); static String resilientUrlDecode(String input); static byte hexCharsToByte(String twoHexDigits); static byte hexCharsToByte(char c1, char c2); static String decodeApacheHTTPDLogValue(String input); static String makeHTMLEncodedInert(String uriString); static String replaceString(
        final String input,
        final String searchFor,
        final String replaceWith
    );  }