mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-25 16:29:28 +00:00
Hoist Class.getName() from String concatenation to dodge an issue related to profile pollution
This commit is contained in:
committed by
Juergen Hoeller
parent
7c84695333
commit
484006ce90
+2
-2
@@ -123,8 +123,8 @@ public class DefaultWebFilterChain implements WebFilterChain {
|
||||
}
|
||||
|
||||
private Mono<Void> invokeFilter(WebFilter current, DefaultWebFilterChain chain, ServerWebExchange exchange) {
|
||||
return current.filter(exchange, chain)
|
||||
.checkpoint(current.getClass().getName() + " [DefaultWebFilterChain]");
|
||||
String currentName = current.getClass().getName();
|
||||
return current.filter(exchange, chain).checkpoint(currentName + " [DefaultWebFilterChain]");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user