From 3e939cbabdd8f5bcb0b10b802fce91419dff0930 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Fri, 14 Aug 2020 17:02:13 -0700 Subject: [PATCH] Polish method order --- .../builder/SpringApplicationBuilder.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/builder/SpringApplicationBuilder.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/builder/SpringApplicationBuilder.java index 5f7efcd0f5e..33e0707fd1f 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/builder/SpringApplicationBuilder.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/builder/SpringApplicationBuilder.java @@ -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 getMapFromKeyValuePairs(String[] properties) { Map map = new HashMap<>(); for (String property : properties) {