Skip to content

Commit b915cb8

Browse files
committed
Minor change to work with 2.16 databind wrt Ion
1 parent c59a655 commit b915cb8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ion/src/main/java/com/fasterxml/jackson/dataformat/ion/polymorphism/IonAnnotationTypeResolverBuilder.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,4 +128,13 @@ public IonAnnotationTypeResolverBuilder withDefaultImpl(Class<?> newDefaultImpl)
128128
}
129129
return new IonAnnotationTypeResolverBuilder(this, defaultImpl);
130130
}
131+
132+
@Override // since 2.16, modified from jackson-databind/StdTypeResolverBuilder
133+
public IonAnnotationTypeResolverBuilder withSettings(JsonTypeInfo.Value settings)
134+
{
135+
// We don't have most of relevant things, just default implementation so:
136+
defaultImpl = settings.getDefaultImpl();
137+
typeIdVisible = settings.getIdVisible();
138+
return this;
139+
}
131140
}

0 commit comments

Comments
 (0)