Skip to content

Commit c245e20

Browse files
committed
Refine null-safety in the spring-beans module
See gh-34152
1 parent 185537d commit c245e20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-beans/src/main/java/org/springframework/beans/factory/config/FieldRetrievingFactoryBean.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public void setBeanClassLoader(ClassLoader classLoader) {
158158

159159

160160
@Override
161-
@SuppressWarnings("NullAway")
161+
@SuppressWarnings("NullAway") // Lazy initialization
162162
public void afterPropertiesSet() throws ClassNotFoundException, NoSuchFieldException {
163163
if (this.targetClass != null && this.targetObject != null) {
164164
throw new IllegalArgumentException("Specify either targetClass or targetObject, not both");

0 commit comments

Comments
 (0)