From acf318db9dd45e424e5f165ff632fb6556faf627 Mon Sep 17 00:00:00 2001 From: Christof Rabensteiner Date: Mon, 13 May 2019 09:29:57 +0200 Subject: Refactor RedisConfig: Use Diamond Operator --- src/main/java/at/gv/egiz/moazs/config/RedisConfig.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src') 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 redisTemplate() { - final RedisTemplate template = new RedisTemplate(); + final RedisTemplate template = new RedisTemplate<>(); template.setConnectionFactory(jedisConnectionFactory()); template.setDefaultSerializer(stringRedisSerializer()); return template; -- cgit v1.2.3