Skip to content

Commit

Permalink
fix jsonSerialize processing - replaces #3162
Browse files Browse the repository at this point in the history
  • Loading branch information
frantuma committed Jan 26, 2024
1 parent cb52f5d commit 0f11c7e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ public Model resolve(JavaType type, ModelConverterContext context, Iterator<Mode
//If JsonSerialize(as=...) is specified then use that bean to figure out all the json-like bits
JsonSerialize jasonSerialize = beanDesc.getClassAnnotations().get(JsonSerialize.class);
if (jasonSerialize != null) {
if (jasonSerialize.as() != Void.class) {
if (jasonSerialize.as() != Void.class && jasonSerialize.as() != java.lang.Void.class) {
JavaType asType = _mapper.constructType(jasonSerialize.as());
beanDesc = _mapper.getSerializationConfig().introspect(asType);
}
Expand Down

0 comments on commit 0f11c7e

Please sign in to comment.