Refine null-safety in the spring-beans module
See gh-34152
This commit is contained in:
parent
185537d469
commit
c245e20e3f
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue