Polish method order

This commit is contained in:
Phillip Webb 2020-08-14 17:02:13 -07:00
parent 2fe446335a
commit 3e939cbabd
1 changed files with 10 additions and 10 deletions

View File

@ -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) {