Polymorphism – how to check if a superclass is a subclass?

This is my code: public class WriteReviewController { private OverviewActivity overviewActivity; private WriteReviewActivity writeReviewActivity; … public …

Jackson deserialization to concrete polymorphic class

I have following Jackson annotated classes (Kotlin) @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = “type” ) @JsonSubTypes( value = [ …