Refine null-safety in the spring-beans module

See gh-34152
This commit is contained in:
Sébastien Deleuze 2024-12-26 14:18:48 +01:00
parent 185537d469
commit c245e20e3f
1 changed files with 1 additions and 1 deletions

View File

@ -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");