From bd223e8bea65d7297edd22f9de6377caf5534632 Mon Sep 17 00:00:00 2001 From: choi-hyeseong Date: Sun, 22 Sep 2024 19:00:45 +0900 Subject: [PATCH] Remove duplicated `file.getName()` call Update `WebServerPortFileWriter` so that `file.getName()` is only called once. See gh-42411 --- .../web/context/WebServerPortFileWriter.java | 23 +++++++++---------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/context/WebServerPortFileWriter.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/context/WebServerPortFileWriter.java index 0ec76343eb..edc202fd31 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/context/WebServerPortFileWriter.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/context/WebServerPortFileWriter.java @@ -109,18 +109,17 @@ public class WebServerPortFileWriter implements ApplicationListener