Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public void encode(MemoryBuffer buffer, T obj) {
* @param codec the codec to use
*/
public static <T> void registerCustomCodec(
Class<?> beanType, Class<T> type, CustomCodec<T, ?> codec) {
Class<?> beanType, Class<? super T> type, CustomCodec<T, ?> codec) {
TypeInference.registerCustomCodec(new CustomTypeRegistration(beanType, type), codec);
}

Expand All @@ -247,7 +247,7 @@ public static <T> void registerCustomCodec(
* @param type the type of field to handle
* @param codec the codec to use
*/
public static <T> void registerCustomCodec(Class<T> type, CustomCodec<T, ?> codec) {
public static <T> void registerCustomCodec(Class<? super T> type, CustomCodec<T, ?> codec) {
registerCustomCodec(Object.class, type, codec);
}

Expand Down
Loading