Avoid throws Exception where possible - Phase II

Final phase III to follow.

* Polishing

* Polishing
This commit is contained in:
Gary Russell
2019-03-07 16:15:22 -05:00
committed by Artem Bilan
parent 3d87ac6463
commit b138ab80f8
39 changed files with 308 additions and 291 deletions

View File

@@ -74,7 +74,7 @@ public class ExpressionArgumentsStrategy implements ArgumentsStrategy, BeanFacto
}
@Override
public void afterPropertiesSet() throws Exception {
public void afterPropertiesSet() {
if (this.evaluationContext == null) {
this.evaluationContext = ExpressionUtils.createStandardEvaluationContext(this.beanFactory);
}

View File

@@ -321,7 +321,7 @@ public class RedisStoreWritingMessageHandler extends AbstractMessageHandler {
}
@SuppressWarnings("unchecked")
private void writeToZset(RedisZSet<Object> zset, final Message<?> message) throws Exception {
private void writeToZset(RedisZSet<Object> zset, final Message<?> message) {
final Object payload = message.getPayload();
final BoundZSetOperations<String, Object> ops =
(BoundZSetOperations<String, Object>) this.redisTemplate.boundZSetOps(zset.getKey());

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2014-2018 the original author or authors.
* Copyright 2014-2019 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.
@@ -107,7 +107,7 @@ public class RedisChannelMessageStore implements ChannelMessageStore, BeanNameAw
}
@Override
public void afterPropertiesSet() throws Exception {
public void afterPropertiesSet() {
Assert.notNull(this.beanName, "'beanName' must not be null");
}