Refine null-safety in the spring-test module

Closes gh-34161
This commit is contained in:
Sébastien Deleuze
2024-12-26 17:45:17 +01:00
parent 7417bd0ac1
commit a442c180f1
19 changed files with 47 additions and 29 deletions

View File

@@ -16,6 +16,8 @@
package org.springframework.test.web.servlet;
import org.jspecify.annotations.Nullable;
import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.mock.web.MockHttpServletResponse;
import org.springframework.web.servlet.FlashMap;
@@ -127,12 +129,12 @@ public class StubMvcResult implements MvcResult {
}
@Override
public Object getAsyncResult() {
public @Nullable Object getAsyncResult() {
return null;
}
@Override
public Object getAsyncResult(long timeToWait) {
public @Nullable Object getAsyncResult(long timeToWait) {
return null;
}