Skip to content

Commit f2dd7b0

Browse files
committed
Consistent final @nullable declarations
1 parent 78f9016 commit f2dd7b0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: spring-beans/src/main/java/org/springframework/beans/factory/support/DefaultListableBeanFactory.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto
162162
new ConcurrentHashMap<>(8);
163163

164164
/** Whether strict locking is enforced or relaxed in this factory. */
165-
private @Nullable final Boolean strictLocking = SpringProperties.checkFlag(STRICT_LOCKING_PROPERTY_NAME);
165+
private final @Nullable Boolean strictLocking = SpringProperties.checkFlag(STRICT_LOCKING_PROPERTY_NAME);
166166

167167
/** Optional id for this factory, for serialization purposes. */
168168
private @Nullable String serializationId;

Diff for: spring-web/src/main/java/org/springframework/web/bind/ServletRequestDataBinder.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2023 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -228,7 +228,7 @@ protected ServletRequest getRequest() {
228228
}
229229

230230
@Override
231-
public @Nullable final Object resolveValue(String name, Class<?> paramType) {
231+
public final @Nullable Object resolveValue(String name, Class<?> paramType) {
232232
Object value = getRequestParameter(name, paramType);
233233
if (value == null) {
234234
value = this.dataBinder.resolvePrefixValue(name, paramType, this::getRequestParameter);

0 commit comments

Comments
 (0)