AbstractBinder's afterPropertiesSet() is now final

- subclasses should implement the new onInit() method instead of overriding
- avoids the potential for a NPE in case an overriding subclass did not call the superclass method
This commit is contained in:
Mark Fisher
2016-03-02 13:29:49 -05:00
parent 9f9bc66345
commit 2bc59a184a
4 changed files with 14 additions and 9 deletions

View File

@@ -393,8 +393,7 @@ public class RabbitMessageChannelBinder extends AbstractBinder<MessageChannel> {
}
@Override
public void afterPropertiesSet() throws Exception {
super.afterPropertiesSet();
public void onInit() {
if (this.clustered) {
Assert.state(this.addresses.length == this.adminAddresses.length
&& this.addresses.length == this.nodes.length,