Merge branch '1.4.x' into 1.5.x

This commit is contained in:
Andy Wilkinson
2016-11-15 11:48:53 +00:00
2 changed files with 7 additions and 7 deletions

View File

@@ -25,6 +25,7 @@ import org.springframework.boot.configurationsample.NestedConfigurationProperty;
/**
* Demonstrate that only relevant generics are stored in the metadata.
*
* @param <T> the type of the config
* @author Stephane Nicoll
*/
@ConfigurationProperties("generic")
@@ -43,11 +44,9 @@ public class GenericConfig<T> {
@NestedConfigurationProperty
private final Bar<String> bar = new Bar<String>();
private final Map<String, Bar<Integer>> stringToBar =
new HashMap<String, Bar<Integer>>();
private final Map<String, Bar<Integer>> stringToBar = new HashMap<String, Bar<Integer>>();
private final Map<String, Integer> stringToInteger =
new HashMap<String, Integer>();
private final Map<String, Integer> stringToInteger = new HashMap<String, Integer>();
public String getName() {
return this.name;