From c94fb7fc53eeb4f298f06beb8d65814276f003b5 Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Mon, 23 Dec 2013 22:12:54 +0000 Subject: [PATCH] Fix bizarre compiler error --- .../boot/autoconfigure/redis/RedisAutoConfiguration.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/redis/RedisAutoConfiguration.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/redis/RedisAutoConfiguration.java index 8310ab9ba7..056966b8d0 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/redis/RedisAutoConfiguration.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/redis/RedisAutoConfiguration.java @@ -24,7 +24,6 @@ import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingClass; -import org.springframework.boot.autoconfigure.redis.RedisAutoConfiguration.RedisProperties.Pool; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.context.annotation.Bean; @@ -100,7 +99,9 @@ public class RedisAutoConfiguration { private PoolConfig poolConfig() { PoolConfig pool = new PoolConfig(); - Pool props = this.config.getPool(); + // FQCN to avoid bizarre compiler error on command line build (!?) + org.springframework.boot.autoconfigure.redis.RedisAutoConfiguration.RedisProperties.Pool props = this.config + .getPool(); if (props != null) { pool.setMaxActive(props.getMaxActive()); pool.setMaxIdle(props.getMaxIdle());