Remove unneeded @SuppressWarnings("NullAway")

Closes gh-32542
This commit is contained in:
Sébastien Deleuze
2024-05-06 17:58:14 +02:00
parent 93dcbc41b0
commit 12272d6e41
10 changed files with 1 additions and 11 deletions

View File

@@ -374,7 +374,6 @@ class DefaultWebTestClient implements WebTestClient {
DefaultWebTestClient.this.entityResultConsumer, getResponseTimeout());
}
@SuppressWarnings("NullAway")
private ClientRequest.Builder initRequestBuilder() {
return ClientRequest.create(this.httpMethod, initUri())
.headers(headersToUse -> {

View File

@@ -47,7 +47,6 @@ public class ViewResultMatchers {
/**
* Assert the selected view name with the given Hamcrest {@link Matcher}.
*/
@SuppressWarnings("NullAway")
public ResultMatcher name(Matcher<? super String> matcher) {
return result -> {
ModelAndView mav = result.getModelAndView();
@@ -61,7 +60,6 @@ public class ViewResultMatchers {
/**
* Assert the selected view name.
*/
@SuppressWarnings("NullAway")
public ResultMatcher name(String expectedViewName) {
return result -> {
ModelAndView mav = result.getModelAndView();