diff --git a/java/fory-format/src/main/java/org/apache/fory/format/encoder/Encoders.java b/java/fory-format/src/main/java/org/apache/fory/format/encoder/Encoders.java index 8a7bd6b37d..cbfc616112 100644 --- a/java/fory-format/src/main/java/org/apache/fory/format/encoder/Encoders.java +++ b/java/fory-format/src/main/java/org/apache/fory/format/encoder/Encoders.java @@ -237,7 +237,7 @@ public void encode(MemoryBuffer buffer, T obj) { * @param codec the codec to use */ public static void registerCustomCodec( - Class beanType, Class type, CustomCodec codec) { + Class beanType, Class type, CustomCodec codec) { TypeInference.registerCustomCodec(new CustomTypeRegistration(beanType, type), codec); } @@ -247,7 +247,7 @@ public static void registerCustomCodec( * @param type the type of field to handle * @param codec the codec to use */ - public static void registerCustomCodec(Class type, CustomCodec codec) { + public static void registerCustomCodec(Class type, CustomCodec codec) { registerCustomCodec(Object.class, type, codec); }