--- /Hex.java	2023-07-05 03:11:50.862028082 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/binary/Hex.java	2023-07-05 03:11:50.862028082 +0200
@@ -148,7 +148,7 @@
      */
 	public Object decode(Object object) throws DecoderException {
 		try {
-            char[] charArray = object instanceof String ? ((String) object).toCharArray() : (char[]) object;
+char[] charArray = object  &&  String ?  (  ( String )  object ) .toCharArray (  )  :  ( char[] )  object;
 		    return decodeHex(charArray);
 		} catch (ClassCastException e) {
 		    throw new DecoderException(e.getMessage());
