Polish method order
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user