mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Polish formatting and address warnings
This commit is contained in:
parent
8a57ebde06
commit
c2730ac63f
@ -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;
|
||||
|
@ -19,8 +19,7 @@ package org.springframework.boot.configurationsample.specific;
|
||||
import org.springframework.boot.configurationsample.ConfigurationProperties;
|
||||
|
||||
/**
|
||||
* Test that compilation fails if the same type is registered twice with the
|
||||
* same prefix.
|
||||
* Test that compilation fails if the same type is registered twice with the same prefix.
|
||||
*
|
||||
* @author Stephane Nicoll
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user