From 6177010b11b79be7b4ff9f08bb8f8362543974a7 Mon Sep 17 00:00:00 2001 From: zhoudong Date: Wed, 12 Feb 2025 18:00:58 +0800 Subject: [PATCH 1/2] Polish variable name in ServletWebServerApplicationContext.selfInitialize() See gh-44240 Signed-off-by: zhoudong --- .../servlet/context/ServletWebServerApplicationContext.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/context/ServletWebServerApplicationContext.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/context/ServletWebServerApplicationContext.java index d6513792d21..0e938bf30c1 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/context/ServletWebServerApplicationContext.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/context/ServletWebServerApplicationContext.java @@ -237,8 +237,8 @@ public class ServletWebServerApplicationContext extends GenericWebApplicationCon prepareWebApplicationContext(servletContext); registerApplicationScope(servletContext); WebApplicationContextUtils.registerEnvironmentBeans(getBeanFactory(), servletContext); - for (ServletContextInitializer beans : getServletContextInitializerBeans()) { - beans.onStartup(servletContext); + for (ServletContextInitializer initializerBean : getServletContextInitializerBeans()) { + initializerBean.onStartup(servletContext); } } From a57fd8002fa8ff078c5bdc63df5249c5eb110b7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Nicoll?= Date: Wed, 12 Feb 2025 20:22:48 +0100 Subject: [PATCH 2/2] Update copyright year of changed file See gh-44240 --- .../web/servlet/context/ServletWebServerApplicationContext.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/context/ServletWebServerApplicationContext.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/context/ServletWebServerApplicationContext.java index 0e938bf30c1..6562e68d1e8 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/context/ServletWebServerApplicationContext.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/context/ServletWebServerApplicationContext.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2023 the original author or authors. + * Copyright 2012-2025 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.