Remove Exception from IOS.onInit()

This commit is contained in:
Gary Russell
2018-12-21 17:01:35 -05:00
committed by Artem Bilan
parent 81b4ea1bef
commit 113a371f2c
63 changed files with 118 additions and 94 deletions

View File

@@ -131,7 +131,7 @@ public class SubscribableRedisChannel extends AbstractMessageChannel
}
@Override
public void onInit() throws Exception {
public void onInit() {
if (this.initialized) {
return;
}

View File

@@ -141,7 +141,7 @@ public class RedisQueueInboundGateway extends MessagingGatewaySupport implements
}
@Override
protected void onInit() throws Exception {
protected void onInit() {
super.onInit();
if (!this.extractPayload) {
Assert.notNull(this.serializer, "'serializer' has to be provided where 'extractPayload == false'.");

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2013-2016 the original author or authors.
* Copyright 2013-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -99,7 +99,7 @@ public class RedisQueueOutboundChannelAdapter extends AbstractMessageHandler {
}
@Override
protected void onInit() throws Exception {
protected void onInit() {
super.onInit();
if (this.evaluationContext == null) {
this.evaluationContext = ExpressionUtils.createStandardEvaluationContext(getBeanFactory());

View File

@@ -240,7 +240,7 @@ public class RedisStoreWritingMessageHandler extends AbstractMessageHandler {
}
@Override
protected void onInit() throws Exception {
protected void onInit() {
this.evaluationContext =
ExpressionUtils.createStandardEvaluationContext(this.getBeanFactory());
Assert.state(!this.mapKeyExpressionExplicitlySet ||