Sonar fixes
Critical issues for `o.s.i.j*` (except `jdbc`).
This commit is contained in:
committed by
Artem Bilan
parent
89fdb938de
commit
7efe79f457
@@ -16,6 +16,7 @@
|
||||
|
||||
package org.springframework.integration.core;
|
||||
|
||||
import org.springframework.lang.Nullable;
|
||||
import org.springframework.messaging.Message;
|
||||
|
||||
/**
|
||||
@@ -31,6 +32,7 @@ public interface MessageSource<T> {
|
||||
* Returns <code>null</code> if no message is available.
|
||||
* @return The message or null.
|
||||
*/
|
||||
@Nullable
|
||||
Message<T> receive();
|
||||
|
||||
}
|
||||
|
||||
@@ -31,6 +31,7 @@ import org.springframework.integration.support.management.MessageSourceMetrics;
|
||||
import org.springframework.integration.support.management.metrics.CounterFacade;
|
||||
import org.springframework.integration.support.management.metrics.MetricsCaptor;
|
||||
import org.springframework.integration.util.AbstractExpressionEvaluator;
|
||||
import org.springframework.lang.Nullable;
|
||||
import org.springframework.messaging.Message;
|
||||
import org.springframework.messaging.MessagingException;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
@@ -231,6 +232,7 @@ public abstract class AbstractMessageSource<T> extends AbstractExpressionEvaluat
|
||||
* also can be {@link AbstractIntegrationMessageBuilder} which is used for additional headers population.
|
||||
* @return The value returned.
|
||||
*/
|
||||
@Nullable
|
||||
protected abstract Object doReceive();
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user