aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-05-13 09:29:57 +0200
committerChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-05-13 09:29:57 +0200
commitacf318db9dd45e424e5f165ff632fb6556faf627 (patch)
tree3b3bd34803c6ba097705037018aded198cd99dbe /src
parent840474fdfcee245f49dfee08b67f6f9ba6d3de1f (diff)
downloadmoa-zs-acf318db9dd45e424e5f165ff632fb6556faf627.tar.gz
moa-zs-acf318db9dd45e424e5f165ff632fb6556faf627.tar.bz2
moa-zs-acf318db9dd45e424e5f165ff632fb6556faf627.zip
Refactor RedisConfig: Use Diamond Operator
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/gv/egiz/moazs/config/RedisConfig.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/main/java/at/gv/egiz/moazs/config/RedisConfig.java b/src/main/java/at/gv/egiz/moazs/config/RedisConfig.java
index 84e85d7..50788b4 100644
--- a/src/main/java/at/gv/egiz/moazs/config/RedisConfig.java
+++ b/src/main/java/at/gv/egiz/moazs/config/RedisConfig.java
@@ -11,9 +11,6 @@ import org.springframework.data.redis.serializer.StringRedisSerializer;
@Configuration
public class RedisConfig {
- public RedisConfig() {
- }
-
@Value("${spring.redis.host}")
private String host;
@@ -35,7 +32,7 @@ public class RedisConfig {
@Bean
public RedisTemplate<String, Object> redisTemplate() {
- final RedisTemplate<String, Object> template = new RedisTemplate<String, Object>();
+ final RedisTemplate<String, Object> template = new RedisTemplate<>();
template.setConnectionFactory(jedisConnectionFactory());
template.setDefaultSerializer(stringRedisSerializer());
return template;