Fix new Sonar smells

This commit is contained in:
Artem Bilan
2020-03-26 10:31:32 -04:00
parent ca493caf67
commit bff891b7a9
3 changed files with 5 additions and 6 deletions

View File

@@ -30,7 +30,6 @@ import org.springframework.integration.store.MessageGroupStore;
import org.springframework.integration.transaction.TransactionInterceptorBuilder;
import org.springframework.messaging.Message;
import org.springframework.messaging.MessageChannel;
import org.springframework.transaction.PlatformTransactionManager;
import org.springframework.transaction.TransactionManager;
import org.springframework.transaction.interceptor.TransactionInterceptor;
import org.springframework.util.Assert;
@@ -167,7 +166,7 @@ public class DelayerEndpointSpec extends ConsumerEndpointSpec<DelayerEndpointSpe
/**
* Specify a {@link TransactionInterceptor} {@link Advice} with default
* {@link PlatformTransactionManager} and
* {@link TransactionManager} and
* {@link org.springframework.transaction.interceptor.DefaultTransactionAttribute} for
* the
* {@link org.springframework.messaging.MessageHandler}.

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2019 the original author or authors.
* Copyright 2002-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -456,7 +456,7 @@ public abstract class AbstractMailReceiver extends IntegrationObjectSupport impl
}
}
private Object extractContent(MimeMessage message, Map<String, Object> headers) {
private Object extractContent(MimeMessage message, Map<String, Object> headers) { // NOSONAR
Object content;
try {
MimeMessage theMessage = message;

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2007-2019 the original author or authors.
* Copyright 2007-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -80,7 +80,7 @@ public abstract class MailTransportUtils {
* @param name The URL name.
* @return The result with password protection.
*/
public static String toPasswordProtectedString(URLName name) {
public static String toPasswordProtectedString(URLName name) { // NOSONAR
String protocol = name.getProtocol();
String username = name.getUsername();
String password = name.getPassword();