Refine null-safety in the spring-beans module
See gh-34152
This commit is contained in:
@@ -158,7 +158,7 @@ public class FieldRetrievingFactoryBean
|
||||
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("NullAway")
|
||||
@SuppressWarnings("NullAway") // Lazy initialization
|
||||
public void afterPropertiesSet() throws ClassNotFoundException, NoSuchFieldException {
|
||||
if (this.targetClass != null && this.targetObject != null) {
|
||||
throw new IllegalArgumentException("Specify either targetClass or targetObject, not both");
|
||||
|
||||
Reference in New Issue
Block a user