mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-02 23:39:34 +00:00
Remove unnecessary @Nullables from local array variable declarations
See gh-50881 Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
This commit is contained in:
committed by
Andy Wilkinson
parent
fc997f67d9
commit
9824f25998
+2
-2
@@ -333,7 +333,7 @@ class ValueObjectBinder implements DataObjectBinder {
|
||||
@SuppressWarnings("unchecked")
|
||||
static <T> @Nullable ValueObject<T> get(Constructor<?> bindConstructor, ResolvableType type,
|
||||
ParameterNameDiscoverer parameterNameDiscoverer) {
|
||||
@Nullable String @Nullable [] names = parameterNameDiscoverer.getParameterNames(bindConstructor);
|
||||
@Nullable String[] names = parameterNameDiscoverer.getParameterNames(bindConstructor);
|
||||
if (names == null) {
|
||||
return null;
|
||||
}
|
||||
@@ -422,7 +422,7 @@ class ValueObjectBinder implements DataObjectBinder {
|
||||
|
||||
@Override
|
||||
public @Nullable String @Nullable [] getParameterNames(Constructor<?> constructor) {
|
||||
@Nullable String @Nullable [] names = this.delegate.getParameterNames(constructor);
|
||||
@Nullable String[] names = this.delegate.getParameterNames(constructor);
|
||||
if (names != null) {
|
||||
return names;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user