Skip to content

Conversation

artembilan
Copy link
Member

  • Fix MessagingMethodInvokerHelper to extract canonical method for the
    Function and Consumer beans
  • Demonstrate in test how Function and Consumer can be configured
    with the Messaging annotations

/CC @markpollack , @olegz

* Fix `MessagingMethodInvokerHelper` to extract canonical method for the
`Function` and `Consumer` beans
* Demonstrate in test how `Function` and `Consumer` can be configured
with the Messaging annotations

final String methodName;

if (methodNameToUse == null) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not good practice to mutate parameter arguments. Better to leave the argument final (e.g. final String methodNameArg) and then String methodName = methodNameArg.

@garyrussell garyrussell merged commit 8b4d1e6 into spring-projects:master Oct 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants