From 1d7c0108d06401c0a9e28d7b47ea3834b4a6d273 Mon Sep 17 00:00:00 2001 From: dkswnkk Date: Wed, 6 Sep 2023 23:58:04 +0900 Subject: [PATCH] Capitalize order constant in TomcatWebServerFactoryCustomizer See gh-37211 --- .../TomcatVirtualThreadsWebServerFactoryCustomizer.java | 2 +- .../web/embedded/TomcatWebServerFactoryCustomizer.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/embedded/TomcatVirtualThreadsWebServerFactoryCustomizer.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/embedded/TomcatVirtualThreadsWebServerFactoryCustomizer.java index 9af929ffaa..54ba36c7e6 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/embedded/TomcatVirtualThreadsWebServerFactoryCustomizer.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/embedded/TomcatVirtualThreadsWebServerFactoryCustomizer.java @@ -41,7 +41,7 @@ public class TomcatVirtualThreadsWebServerFactoryCustomizer @Override public int getOrder() { - return TomcatWebServerFactoryCustomizer.order + 1; + return TomcatWebServerFactoryCustomizer.ORDER + 1; } } diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/embedded/TomcatWebServerFactoryCustomizer.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/embedded/TomcatWebServerFactoryCustomizer.java index 1e8250deda..1c357d2d0a 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/embedded/TomcatWebServerFactoryCustomizer.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/embedded/TomcatWebServerFactoryCustomizer.java @@ -67,7 +67,7 @@ import org.springframework.util.unit.DataSize; public class TomcatWebServerFactoryCustomizer implements WebServerFactoryCustomizer, Ordered { - static final int order = 0; + static final int ORDER = 0; private final Environment environment; @@ -80,7 +80,7 @@ public class TomcatWebServerFactoryCustomizer @Override public int getOrder() { - return order; + return ORDER; } @Override