Avoid throws Exception where possible - Phase II
Final phase III to follow. * Polishing * Polishing
This commit is contained in:
committed by
Artem Bilan
parent
3d87ac6463
commit
b138ab80f8
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user