Polishing.

Use Spring's nullability annotations where used as part of API nullability indicators.

See #2385
This commit is contained in:
Mark Paluch
2021-06-17 08:48:56 +02:00
parent e57238fe60
commit c24ba262ca
39 changed files with 125 additions and 149 deletions

View File

@@ -17,11 +17,10 @@ package org.springframework.data.util;
import java.util.Map;
import javax.annotation.Nullable;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.ListableBeanFactory;
import org.springframework.beans.factory.NoUniqueBeanDefinitionException;
import org.springframework.lang.Nullable;
import org.springframework.util.Assert;
/**

View File

@@ -19,7 +19,7 @@ import java.lang.reflect.Array;
import java.lang.reflect.GenericArrayType;
import java.lang.reflect.Type;
import javax.annotation.Nonnull;
import org.springframework.lang.NonNull;
/**
* Special {@link TypeDiscoverer} handling {@link GenericArrayType}s.
@@ -58,7 +58,7 @@ class GenericArrayTypeInformation<S> extends ParentTypeAwareTypeInformation<S> {
* @see org.springframework.data.util.TypeDiscoverer#doGetComponentType()
*/
@Override
@Nonnull
@NonNull
protected TypeInformation<?> doGetComponentType() {
Type componentType = type.getGenericComponentType();