Skip to content

Commit

Permalink
Merge pull request #8 from Galster-dev/fix/deserialize_inheritance
Browse files Browse the repository at this point in the history
Fix serializer stack inheritance check
  • Loading branch information
hevav authored Dec 16, 2023
2 parents 8995cd1 + 7f0c6e0 commit 5065e98
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 5065e98

Please sign in to comment.