Sonar: AMQP Fixes

- critical smells
- also import in IMHA

* Polishing
This commit is contained in:
Gary Russell
2018-11-20 09:38:15 -05:00
committed by Artem Bilan
parent 0c33591676
commit c9ae6c794f
5 changed files with 24 additions and 12 deletions

View File

@@ -27,7 +27,6 @@ import java.util.concurrent.atomic.AtomicInteger;
import org.springframework.integration.acks.AcknowledgmentCallback;
import org.springframework.lang.Nullable;
import org.springframework.messaging.Message;
import org.springframework.messaging.MessageHeaders;
import org.springframework.messaging.support.MessageHeaderAccessor;
import org.springframework.util.Assert;
import org.springframework.util.ObjectUtils;
@@ -74,10 +73,11 @@ public class IntegrationMessageHeaderAccessor extends MessageHeaderAccessor {
}
/**
* Specify a list of headers which should be considered as read only
* and prohibited from being populated in the message.
* @param readOnlyHeaders the list of headers for {@code readOnly} mode.
* Defaults to {@link MessageHeaders#ID} and {@link MessageHeaders#TIMESTAMP}.
* Specify a list of headers which should be considered as read only and prohibited
* from being populated in the message.
* @param readOnlyHeaders the list of headers for {@code readOnly} mode. Defaults to
* {@link org.springframework.messaging.MessageHeaders#ID} and
* {@link org.springframework.messaging.MessageHeaders#TIMESTAMP}.
* @since 4.3.2
* @see #isReadOnly(String)
*/