mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 08:24:13 +00:00
MockMvcResultMatchers.forwardedUrl() already accepts a @Nullable expected value to assert that no forwarding occurred, but its counterpart redirectedUrl() previously did not, even though the underlying assertEquals() comparison is null-safe and behaves the same way for redirects. To address that, this commit adds the same @Nullable declaration to redirectedUrl() and documents the null semantics in the Javadoc for both methods. Closes gh-37230