Skip to content

Commit 799802c

Browse files
committed
Clean up some JavaDocs; remove deprecated API
1 parent 10ea577 commit 799802c

File tree

40 files changed

+182
-1553
lines changed

40 files changed

+182
-1553
lines changed

spring-integration-amqp/src/main/java/org/springframework/integration/amqp/outbound/AbstractAmqpOutboundEndpoint.java

+1-29
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2021 the original author or authors.
2+
* Copyright 2016-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -618,25 +618,6 @@ private AbstractIntegrationMessageBuilder<?> prepareMessageBuilder(Object replyO
618618
: getMessageBuilderFactory().withPayload(replyObject);
619619
}
620620

621-
/**
622-
* Build Spring message object based on the provided returned AMQP message info.
623-
* @param message the returned AMQP message
624-
* @param replyCode the returned message reason code
625-
* @param replyText the returned message reason text
626-
* @param exchange the exchange the message returned from
627-
* @param returnedRoutingKey the routing key for returned message
628-
* @param converter the converter to deserialize body of the returned AMQP message
629-
* @return the Spring message which represents a returned AMQP message
630-
* @deprecated since 5.4 in favor of {@link #buildReturnedMessage(ReturnedMessage, MessageConverter)}
631-
*/
632-
@Deprecated
633-
protected Message<?> buildReturnedMessage(org.springframework.amqp.core.Message message,
634-
int replyCode, String replyText, String exchange, String returnedRoutingKey, MessageConverter converter) {
635-
636-
return buildReturnedMessage(new ReturnedMessage(message, replyCode, replyText, exchange, returnedRoutingKey),
637-
converter);
638-
}
639-
640621
protected Message<?> buildReturnedMessage(ReturnedMessage returnedMessage, MessageConverter converter) {
641622
org.springframework.amqp.core.Message amqpMessage = returnedMessage.getMessage();
642623
Object returnedObject = converter.fromMessage(amqpMessage);
@@ -731,15 +712,6 @@ public SettableListenableFuture<Confirm> getFuture() {
731712
}
732713
}
733714

734-
@Override
735-
@Deprecated
736-
public void setReturnedMessage(org.springframework.amqp.core.Message returnedMessage) {
737-
if (this.userData instanceof CorrelationData) {
738-
((CorrelationData) this.userData).setReturnedMessage(returnedMessage);
739-
}
740-
super.setReturnedMessage(returnedMessage);
741-
}
742-
743715
@Override
744716
public void setReturned(ReturnedMessage returned) {
745717
if (this.userData instanceof CorrelationData) {

spring-integration-amqp/src/main/java/org/springframework/integration/amqp/support/ManualAckListenerExecutionFailedException.java

+5-20
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2020 the original author or authors.
2+
* Copyright 2019-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,6 +16,8 @@
1616

1717
package org.springframework.integration.amqp.support;
1818

19+
import java.io.Serial;
20+
1921
import org.springframework.amqp.core.Message;
2022
import org.springframework.amqp.rabbit.support.ListenerExecutionFailedException;
2123

@@ -26,37 +28,20 @@
2628
* Used for conversion errors when using manual acks.
2729
*
2830
* @author Gary Russell
31+
* @author Artem Bilan
2932
*
3033
* @since 5.1.3
3134
*
3235
*/
3336
public class ManualAckListenerExecutionFailedException extends ListenerExecutionFailedException {
3437

38+
@Serial
3539
private static final long serialVersionUID = 1L;
3640

3741
private final Channel channel;
3842

3943
private final long deliveryTag;
4044

41-
/**
42-
* Construct an instance with the provided properties.
43-
* @param msg the exception message.
44-
* @param cause the cause.
45-
* @param failedMessage the failed message.
46-
* @param channel the channel.
47-
* @param deliveryTag the delivery tag for the message.
48-
* @deprecated in favor of
49-
* {@link #ManualAckListenerExecutionFailedException(String, Throwable, Channel, long, Message...)}.
50-
*/
51-
@Deprecated
52-
public ManualAckListenerExecutionFailedException(String msg, Throwable cause, Message failedMessage,
53-
Channel channel, long deliveryTag) {
54-
55-
super(msg, cause, failedMessage);
56-
this.channel = channel;
57-
this.deliveryTag = deliveryTag;
58-
}
59-
6045
/**
6146
* Construct an instance with the provided properties.
6247
* @param msg the exception message.

spring-integration-core/src/main/java/org/springframework/integration/aop/AbstractMessageSourceAdvice.java

-33
This file was deleted.

spring-integration-core/src/main/java/org/springframework/integration/aop/CompoundTriggerAdvice.java

+1-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2015-2020 the original author or authors.
2+
* Copyright 2015-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -18,7 +18,6 @@
1818

1919
import org.springframework.integration.core.MessageSource;
2020
import org.springframework.integration.util.CompoundTrigger;
21-
import org.springframework.lang.Nullable;
2221
import org.springframework.messaging.Message;
2322
import org.springframework.scheduling.Trigger;
2423
import org.springframework.util.Assert;
@@ -55,17 +54,9 @@ public CompoundTriggerAdvice(CompoundTrigger compoundTrigger, Trigger overrideTr
5554
* @param result the received message.
5655
* @param source the message source.
5756
* @return the message or null
58-
* @deprecated since 5.3 in favor of {@link #afterReceive(Message, Object)}
5957
*/
6058
@Override
61-
@Deprecated
6259
public Message<?> afterReceive(Message<?> result, MessageSource<?> source) {
63-
return afterReceive(result, (Object) source);
64-
}
65-
66-
@Override
67-
@Nullable
68-
public Message<?> afterReceive(@Nullable Message<?> result, Object source) {
6960
if (result == null) {
7061
this.compoundTrigger.setOverride(this.override);
7162
}

spring-integration-core/src/main/java/org/springframework/integration/aop/SimpleActiveIdleMessageSourceAdvice.java

-83
This file was deleted.

spring-integration-core/src/main/java/org/springframework/integration/channel/MessageChannelReactiveUtils.java

-44
This file was deleted.

spring-integration-core/src/main/java/org/springframework/integration/config/EnableIntegrationManagement.java

+6-20
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014-2021 the original author or authors.
2+
* Copyright 2014-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -42,33 +42,19 @@
4242
@Import({ MicrometerMetricsCaptorImportSelector.class, IntegrationManagementConfiguration.class })
4343
public @interface EnableIntegrationManagement {
4444

45-
/**
46-
* @deprecated this property is no longer used.
47-
* @return the patterns.
48-
*/
49-
@Deprecated
50-
String[] metersEnabled() default "*";
51-
52-
/**
53-
* @deprecated this property is no longer used.
54-
* @return the value; false by default, or true when JMX is enabled.
55-
*/
56-
@Deprecated
57-
String defaultCountsEnabled() default "false";
5845

5946
/**
60-
* Use to disable all logging in the main message flow in framework components. When 'false', such logging will be
61-
* skipped, regardless of logging level. When 'true', the logging is controlled as normal by the logging
62-
* subsystem log level configuration.
47+
* Use for disabling all logging in the main message flow in framework components. When 'false',
48+
* such logging will be skipped, regardless of logging level. When 'true',
49+
* the logging is controlled as normal by the logging subsystem log level configuration.
6350
* <p>
6451
* It has been found that in high-volume messaging environments, calls to methods such as
6552
* {@code logger.isDebuggingEnabled()} can be quite expensive and account for an inordinate amount of CPU
6653
* time.
6754
* <p>
68-
* Set this to false to disable logging by default in all framework components that implement
55+
* Set this to false for disabling logging by default in all framework components that implement
6956
* {@link org.springframework.integration.support.management.IntegrationManagement}
70-
* (channels, message handlers etc). This turns off logging such as
71-
* "PreSend on channel", "Received message" etc.
57+
* (channels, message handlers etc). It turns off logging such as "PreSend on channel", "Received message" etc.
7258
* <p>
7359
* After the context is initialized, individual components can have their setting changed by invoking
7460
* {@link org.springframework.integration.support.management.IntegrationManagement#setLoggingEnabled(boolean)}.

spring-integration-core/src/main/java/org/springframework/integration/config/IntegrationConfigUtils.java

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014-2021 the original author or authors.
2+
* Copyright 2014-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -20,7 +20,6 @@
2020
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
2121
import org.springframework.beans.factory.support.RootBeanDefinition;
2222
import org.springframework.integration.channel.DirectChannel;
23-
import org.springframework.integration.context.IntegrationContextUtils;
2423

2524
/**
2625
* Shared utility methods for Integration configuration.
@@ -31,12 +30,6 @@
3130
*/
3231
public final class IntegrationConfigUtils {
3332

34-
/**
35-
* @deprecated in favor of {@link IntegrationContextUtils#BASE_PACKAGE}.
36-
*/
37-
@Deprecated
38-
public static final String BASE_PACKAGE = IntegrationContextUtils.BASE_PACKAGE;
39-
4033
public static final String HANDLER_ALIAS_SUFFIX = ".handler";
4134

4235
public static void registerSpelFunctionBean(BeanDefinitionRegistry registry, String functionId, String className,

0 commit comments

Comments
 (0)