Skip to content

Commit

Permalink
Use correct Self Described class type
Browse files Browse the repository at this point in the history
  • Loading branch information
Dragon-Seeker committed Jul 20, 2024
1 parent 560da95 commit abf19c6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public void encodeStruct(SerializationContext ctx, Serializer<?> serializer, Ser
.getOrThrow(IllegalStateException::new)
.asMap();

if(serializer instanceof SelfDescribedDeserializer<?>) {
if(serializer instanceof SelfDescribedSerializer<?>) {
edmMap.value().forEach((s, element) -> struct.field(s, ctx, EdmEndec.INSTANCE, element));
} else {
struct.field("element", ctx, EdmEndec.MAP, edmMap);
Expand Down

0 comments on commit abf19c6

Please sign in to comment.