From 1bf10f29260896fce7fd7f6e486b912fac1d8006 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Mon, 11 Apr 2016 11:29:01 -0700 Subject: [PATCH] Fix accidental banner regression Fix accidental regression introduced when I tweaked the updated banner support (commit aaed87d1). See gh-5636 --- .../main/java/org/springframework/boot/SpringApplication.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot/src/main/java/org/springframework/boot/SpringApplication.java b/spring-boot/src/main/java/org/springframework/boot/SpringApplication.java index fa52ee54b0..b051bb13e8 100644 --- a/spring-boot/src/main/java/org/springframework/boot/SpringApplication.java +++ b/spring-boot/src/main/java/org/springframework/boot/SpringApplication.java @@ -536,10 +536,10 @@ public class SpringApplication { } private Banner printBanner(ConfigurableEnvironment environment) { - if (printBannerViaDeprecatedMethod(environment)) { + if (this.bannerMode == Banner.Mode.OFF) { return null; } - if (this.bannerMode == Banner.Mode.OFF) { + if (printBannerViaDeprecatedMethod(environment)) { return null; } ResourceLoader resourceLoader = this.resourceLoader != null ? this.resourceLoader