From 8095c2a94b720ebb712bb3eb5c1f71f4c733a3d4 Mon Sep 17 00:00:00 2001 From: Moritz Halbritter Date: Thu, 26 Oct 2023 14:35:02 +0200 Subject: [PATCH] Polish "Extract "server.ports" hardcoding into a constant" See gh-38029 --- .../context/RSocketPortInfoApplicationContextInitializer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/rsocket/context/RSocketPortInfoApplicationContextInitializer.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/rsocket/context/RSocketPortInfoApplicationContextInitializer.java index 1e160726e1a..7a3fed4a02e 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/rsocket/context/RSocketPortInfoApplicationContextInitializer.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/rsocket/context/RSocketPortInfoApplicationContextInitializer.java @@ -54,6 +54,7 @@ public class RSocketPortInfoApplicationContextInitializer private static class Listener implements ApplicationListener { private static final String PROPERTY_NAME = "local.rsocket.server.port"; + private static final String SERVER_PORTS = "server.ports"; private final ConfigurableApplicationContext applicationContext;