From ea42275dcf8708e1cfb6d82e0a417f9207937c8c Mon Sep 17 00:00:00 2001 From: Hyunwoo Jung Date: Thu, 3 Sep 2026 11:46:58 +0900 Subject: [PATCH 1/2] Fix typos in Javadoc Closes gh-37229 Signed-off-by: Hyunwoo Jung --- .../web/cors/UrlBasedCorsConfigurationSource.java | 2 +- .../web/reactive/function/server/RouterFunctions.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-web/src/main/java/org/springframework/web/cors/UrlBasedCorsConfigurationSource.java b/spring-web/src/main/java/org/springframework/web/cors/UrlBasedCorsConfigurationSource.java index 9f92785ade1..fbc82fe72c9 100644 --- a/spring-web/src/main/java/org/springframework/web/cors/UrlBasedCorsConfigurationSource.java +++ b/spring-web/src/main/java/org/springframework/web/cors/UrlBasedCorsConfigurationSource.java @@ -151,7 +151,7 @@ public class UrlBasedCorsConfigurationSource implements CorsConfigurationSource /** * When enabled, if there is neither a - * {@link UrlPathHelper#resolveAndCacheLookupPath esolved} String lookupPath nor a + * {@link UrlPathHelper#resolveAndCacheLookupPath resolved} String lookupPath nor a * {@link ServletRequestPathUtils#parseAndCache parsed} {@code RequestPath} * then use the {@link #setUrlPathHelper configured} {@code UrlPathHelper} * to resolve a String lookupPath. This in turn determines use of URL diff --git a/spring-webflux/src/main/java/org/springframework/web/reactive/function/server/RouterFunctions.java b/spring-webflux/src/main/java/org/springframework/web/reactive/function/server/RouterFunctions.java index d6faabedce3..a359a3eae96 100644 --- a/spring-webflux/src/main/java/org/springframework/web/reactive/function/server/RouterFunctions.java +++ b/spring-webflux/src/main/java/org/springframework/web/reactive/function/server/RouterFunctions.java @@ -760,7 +760,7 @@ public abstract class RouterFunctions { * defined router functions into this builder, or can be combined with * {@link RouterFunctions#route(RequestPredicate, HandlerFunction)} * to allow for more flexible predicate matching. - *

For instance, the fbelow adds the router function returned from + *

For instance, the below adds the router function returned from * {@code OrderController.routerFunction()} to the {@code changeUser} * method in {@code userController}: *


From f2fe79e56dabc20ae2b96fafa397ce512fb8ab65 Mon Sep 17 00:00:00 2001
From: Chengang Guan 
Date: Thu, 3 Sep 2026 16:11:12 +0800
Subject: [PATCH 2/2] Use ArrayList instead of LinkedList in
 CompositeRetryListener

CompositeRetryListener currently uses LinkedList to store registered
listeners. The primary operation on this list is iteration (traversing
all listeners on every retry lifecycle event). ArrayList provides
better iteration performance due to better cache locality and lower
memory overhead.

Closes gh-37231

Signed-off-by: Chengang Guan 
---
 .../core/retry/support/CompositeRetryListener.java            | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/spring-core/src/main/java/org/springframework/core/retry/support/CompositeRetryListener.java b/spring-core/src/main/java/org/springframework/core/retry/support/CompositeRetryListener.java
index 58ceb33aa44..7864d15db8f 100644
--- a/spring-core/src/main/java/org/springframework/core/retry/support/CompositeRetryListener.java
+++ b/spring-core/src/main/java/org/springframework/core/retry/support/CompositeRetryListener.java
@@ -16,7 +16,7 @@
 
 package org.springframework.core.retry.support;
 
-import java.util.LinkedList;
+import java.util.ArrayList;
 import java.util.List;
 
 import org.jspecify.annotations.Nullable;
@@ -42,7 +42,7 @@ import org.springframework.util.Assert;
  */
 public class CompositeRetryListener implements RetryListener {
 
-	private final List listeners = new LinkedList<>();
+	private final List listeners = new ArrayList<>();
 
 
 	/**