From b7fe3a5332c03579e47e497a5f2e58f6e968c85a Mon Sep 17 00:00:00 2001 From: Johnny Lim Date: Thu, 17 May 2018 19:24:11 +0900 Subject: [PATCH] Make ErrorProperties.whitelabel final Closes gh-13197 --- .../boot/autoconfigure/web/ErrorProperties.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ErrorProperties.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ErrorProperties.java index c7553e3703f..59421635dec 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ErrorProperties.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ErrorProperties.java @@ -44,7 +44,7 @@ public class ErrorProperties { */ private IncludeStacktrace includeStacktrace = IncludeStacktrace.NEVER; - private Whitelabel whitelabel = new Whitelabel(); + private final Whitelabel whitelabel = new Whitelabel(); public String getPath() { return this.path; @@ -74,10 +74,6 @@ public class ErrorProperties { return this.whitelabel; } - public void setWhitelabel(Whitelabel whitelabel) { - this.whitelabel = whitelabel; - } - /** * Include Stacktrace attribute options. */