AMQP-805: protected postProcessMessageBeforeSend
JIRA: https://jira.spring.io/browse/AMQP-805 Fixes https://github.com/spring-projects/spring-amqp/issues/722 The `AmqpAppender.postProcessMessageBeforeSend()` is `public` and uses a `protected` `Event` API. This combination is useless when we use it from outside call and also it is clashes with Kotlin * Make `postProcessMessageBeforeSend()` as `protected` because it's never been designed for public usage. **Cherry-pick to 2.0.x, master**
This commit is contained in:
@@ -231,7 +231,7 @@ public class AmqpAppender extends AbstractAppender {
|
||||
* @param event The event.
|
||||
* @return The modified message.
|
||||
*/
|
||||
public Message postProcessMessageBeforeSend(Message message, Event event) {
|
||||
protected Message postProcessMessageBeforeSend(Message message, Event event) {
|
||||
return message;
|
||||
}
|
||||
|
||||
|
||||
@@ -540,7 +540,7 @@ public class AmqpAppender extends AppenderBase<ILoggingEvent> {
|
||||
* @return The modified message.
|
||||
* @since 1.4
|
||||
*/
|
||||
public Message postProcessMessageBeforeSend(Message message, Event event) {
|
||||
protected Message postProcessMessageBeforeSend(Message message, Event event) {
|
||||
return message;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user