mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-23 14:40:00 +00:00
Upgrade to NullAway 0.12.10 and refine nullability
Closes gh-35492
This commit is contained in:
@@ -803,13 +803,13 @@ final class DefaultRestClient implements RestClient {
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("NullAway") // See https://github.com/uber/NullAway/issues/1075
|
||||
@SuppressWarnings("NullAway") // See https://github.com/uber/NullAway/issues/1290
|
||||
public <T> @Nullable T body(Class<T> bodyType) {
|
||||
return executeAndExtract((request, response) -> readBody(request, response, bodyType, bodyType, this.hints));
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("NullAway") // See https://github.com/uber/NullAway/issues/1075
|
||||
@SuppressWarnings("NullAway") // See https://github.com/uber/NullAway/issues/1290
|
||||
public <T> @Nullable T body(ParameterizedTypeReference<T> bodyType) {
|
||||
Type type = bodyType.getType();
|
||||
Class<T> bodyClass = bodyClass(type);
|
||||
|
||||
Reference in New Issue
Block a user