Upgrade to NullAway 0.12.10 and refine nullability

Closes gh-35492
This commit is contained in:
Sébastien Deleuze
2025-09-17 15:17:23 +02:00
parent 8ac5cdb47e
commit da0a36bfd6
15 changed files with 30 additions and 49 deletions
@@ -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);