Skip to content

Commit

Permalink
spring-projectsGH-1093: Remove redundant isInterface() call
Browse files Browse the repository at this point in the history
- redundant since interfaces are always abstract
  • Loading branch information
garyrussell committed Sep 16, 2019
1 parent 9c25d17 commit abbca34
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ protected Message createMessage(Object objectToConvert, MessageProperties messag
JavaType type = this.objectMapper.constructType(
genericType == null ? objectToConvert.getClass() : genericType);
if (genericType != null && !type.isContainerType()
&& (type.getRawClass().isInterface() || Modifier.isAbstract(type.getRawClass().getModifiers()))) {
&& Modifier.isAbstract(type.getRawClass().getModifiers())) {
type = this.objectMapper.constructType(objectToConvert.getClass());
}
getJavaTypeMapper().fromJavaType(type, messageProperties);
Expand Down

0 comments on commit abbca34

Please sign in to comment.