Skip to content

Commit

Permalink
AMQP-805: protected postProcessMessageBeforeSend
Browse files Browse the repository at this point in the history
JIRA: https://jira.spring.io/browse/AMQP-805
Fixes #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**
  • Loading branch information
Romster authored and artembilan committed Mar 22, 2018
1 parent e50cb89 commit c8d66d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ public void append(LogEvent event) {
* @param event The event.
* @return The modified message.
*/
public Message postProcessMessageBeforeSend(Message message, Event event) {
protected Message postProcessMessageBeforeSend(Message message, Event event) {
return message;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ else if ("headers".equals(this.exchangeType)) {
* @return The modified message.
* @since 1.4
*/
public Message postProcessMessageBeforeSend(Message message, Event event) {
protected Message postProcessMessageBeforeSend(Message message, Event event) {
return message;
}

Expand Down

0 comments on commit c8d66d2

Please sign in to comment.