Skip to content

Commit

Permalink
Fix serializer stack inheritance check
Browse files Browse the repository at this point in the history
  • Loading branch information
Galster-dev committed Dec 16, 2023
1 parent 8995cd1 commit 7f0c6e0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ protected Type fillSerializerStack(Deque<ClassSerializer<?, Object>> serializerS
Type type = null;
while (true) {
ClassSerializer<?, Object> classSerializer = this.config.getRegisteredSerializer(clazz);
if (classSerializer == null || !clazz.isAssignableFrom(classSerializer.getToClass())) {
if (classSerializer == null || !classSerializer.getToClass().isAssignableFrom(clazz)) {
break;
}

Expand Down

0 comments on commit 7f0c6e0

Please sign in to comment.