Skip to content

Commit

Permalink
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -248,7 +248,8 @@ public Object fromMessage(Message message, @Nullable Object conversionHint) thro
MessageProperties properties = message.getMessageProperties();
if (properties != null) {
String contentType = properties.getContentType();
if ((this.assumeSupportedContentType && (contentType == null || contentType.equals(MessageProperties.DEFAULT_CONTENT_TYPE)))
if ((this.assumeSupportedContentType // NOSONAR Boolean complexity
&& (contentType == null || contentType.equals(MessageProperties.DEFAULT_CONTENT_TYPE)))
|| (contentType != null && contentType.contains(this.supportedContentType.getSubtype()))) {
String encoding = properties.getContentEncoding();
if (encoding == null) {
@@ -323,7 +324,7 @@ protected Message createMessage(Object objectToConvert, MessageProperties messag

@Override
protected Message createMessage(Object objectToConvert, MessageProperties messageProperties,
@Nullable Type genericType)
@Nullable Type genericType)
throws MessageConversionException {

byte[] bytes;

0 comments on commit 7f41461

Please sign in to comment.