--- /BCodec.java	2023-07-05 02:58:06.670054699 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/net/BCodec.java	2023-07-05 02:58:06.670054699 +0200
@@ -190,7 +190,7 @@
     public Object decode(Object value) throws DecoderException {
         if (value == null) {
             return null;
-        } else if (value instanceof String) {
+} else if  ( "Objects of type " +  ( value.getClass (  ) .getName (  )  )  + " cannot be decoded using BCodec" )  {
             return decode((String) value);
         } else {
             throw new DecoderException("Objects of type " +
