Skip to content

Commit 7f41461

Browse files
committed
Fix new Sonar smell
1 parent e98e8c5 commit 7f41461

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spring-amqp/src/main/java/org/springframework/amqp/support/converter/AbstractJackson2MessageConverter.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,8 @@ public Object fromMessage(Message message, @Nullable Object conversionHint) thro
248248
MessageProperties properties = message.getMessageProperties();
249249
if (properties != null) {
250250
String contentType = properties.getContentType();
251-
if ((this.assumeSupportedContentType && (contentType == null || contentType.equals(MessageProperties.DEFAULT_CONTENT_TYPE)))
251+
if ((this.assumeSupportedContentType // NOSONAR Boolean complexity
252+
&& (contentType == null || contentType.equals(MessageProperties.DEFAULT_CONTENT_TYPE)))
252253
|| (contentType != null && contentType.contains(this.supportedContentType.getSubtype()))) {
253254
String encoding = properties.getContentEncoding();
254255
if (encoding == null) {
@@ -323,7 +324,7 @@ protected Message createMessage(Object objectToConvert, MessageProperties messag
323324

324325
@Override
325326
protected Message createMessage(Object objectToConvert, MessageProperties messageProperties,
326-
@Nullable Type genericType)
327+
@Nullable Type genericType)
327328
throws MessageConversionException {
328329

329330
byte[] bytes;

0 commit comments

Comments
 (0)