Polish method order
This commit is contained in:
parent
2fe446335a
commit
3e939cbabd
|
@ -381,16 +381,6 @@ public class SpringApplicationBuilder {
|
|||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Default properties for the environment in the form {@code key=value} or
|
||||
* {@code key:value}.
|
||||
* @param defaultProperties the properties to set.
|
||||
* @return the current builder
|
||||
*/
|
||||
public SpringApplicationBuilder properties(String... defaultProperties) {
|
||||
return properties(getMapFromKeyValuePairs(defaultProperties));
|
||||
}
|
||||
|
||||
/**
|
||||
* Flag to control whether the application should be initialized lazily.
|
||||
* @param lazyInitialization the flag to set. Defaults to false.
|
||||
|
@ -402,6 +392,16 @@ public class SpringApplicationBuilder {
|
|||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Default properties for the environment in the form {@code key=value} or
|
||||
* {@code key:value}.
|
||||
* @param defaultProperties the properties to set.
|
||||
* @return the current builder
|
||||
*/
|
||||
public SpringApplicationBuilder properties(String... defaultProperties) {
|
||||
return properties(getMapFromKeyValuePairs(defaultProperties));
|
||||
}
|
||||
|
||||
private Map<String, Object> getMapFromKeyValuePairs(String[] properties) {
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
for (String property : properties) {
|
||||
|
|
Loading…
Reference in New Issue