Remove unneeded NullAway warning suppressions
This commit removes warning suppressions related to uber/NullAway#1113 which is now fixed. See gh-28797
This commit is contained in:
@@ -146,7 +146,6 @@ public class ReflectiveMethodInvocation implements ProxyMethodInvocation, Clonea
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("NullAway") // https://github.com/uber/NullAway/issues/1113
|
||||
public void setArguments(@Nullable Object... arguments) {
|
||||
this.arguments = arguments;
|
||||
}
|
||||
@@ -219,7 +218,6 @@ public class ReflectiveMethodInvocation implements ProxyMethodInvocation, Clonea
|
||||
* @see java.lang.Object#clone()
|
||||
*/
|
||||
@Override
|
||||
@SuppressWarnings("NullAway") // https://github.com/uber/NullAway/issues/1113
|
||||
public MethodInvocation invocableClone(@Nullable Object... arguments) {
|
||||
// Force initialization of the user attributes Map,
|
||||
// for having a shared Map reference in the clone.
|
||||
|
||||
@@ -35,7 +35,6 @@ public class SimpleAsyncUncaughtExceptionHandler implements AsyncUncaughtExcepti
|
||||
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("NullAway") // https://github.com/uber/NullAway/issues/1113
|
||||
public void handleUncaughtException(Throwable ex, Method method, @Nullable Object... params) {
|
||||
if (logger.isErrorEnabled()) {
|
||||
logger.error("Unexpected exception occurred invoking async method: " + method, ex);
|
||||
|
||||
@@ -145,7 +145,6 @@ public class SimpleInstantiationStrategy implements InstantiationStrategy {
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("NullAway") // https://github.com/uber/NullAway/issues/1113
|
||||
public Object instantiate(RootBeanDefinition bd, @Nullable String beanName, BeanFactory owner,
|
||||
@Nullable Object factoryBean, Method factoryMethod, @Nullable Object... args) {
|
||||
|
||||
|
||||
@@ -107,7 +107,6 @@ abstract class AbstractJCacheOperation<A extends Annotation> implements JCacheOp
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("NullAway") // https://github.com/uber/NullAway/issues/1113
|
||||
public CacheInvocationParameter[] getAllParameters(@Nullable Object... values) {
|
||||
if (this.allParameterDetails.size() != values.length) {
|
||||
throw new IllegalStateException("Values mismatch, operation has " +
|
||||
|
||||
@@ -84,7 +84,6 @@ class KeyGeneratorAdapter implements KeyGenerator {
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("NullAway") // https://github.com/uber/NullAway/issues/1113
|
||||
public Object generate(Object target, Method method, @Nullable Object... params) {
|
||||
JCacheOperation<?> operation = this.cacheOperationSource.getCacheOperation(method, target.getClass());
|
||||
if (!(operation instanceof AbstractJCacheKeyOperation)) {
|
||||
|
||||
@@ -43,7 +43,6 @@ import org.springframework.core.KotlinDetector;
|
||||
public class SimpleKeyGenerator implements KeyGenerator {
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("NullAway") // https://github.com/uber/NullAway/issues/1113
|
||||
public Object generate(Object target, Method method, @Nullable Object... params) {
|
||||
return generateKey((KotlinDetector.isSuspendingFunction(method) ?
|
||||
Arrays.copyOf(params, params.length - 1) : params));
|
||||
|
||||
@@ -91,7 +91,6 @@ class DefaultServerResponseBuilder implements ServerResponse.BodyBuilder {
|
||||
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("NullAway") // https://github.com/uber/NullAway/issues/1113
|
||||
public ServerResponse.BodyBuilder header(String headerName, @Nullable String... headerValues) {
|
||||
Assert.notNull(headerName, "HeaderName must not be null");
|
||||
for (String headerValue : headerValues) {
|
||||
|
||||
@@ -69,7 +69,6 @@ class DefaultServerResponseBuilder implements ServerResponse.BodyBuilder {
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("NullAway") // https://github.com/uber/NullAway/issues/1113
|
||||
public ServerResponse.BodyBuilder header(String headerName, @Nullable String... headerValues) {
|
||||
Assert.notNull(headerName, "HeaderName must not be null");
|
||||
for (String headerValue : headerValues) {
|
||||
|
||||
Reference in New Issue
Block a user