Skip to content

Commit

Permalink
Refine null-safety in the spring-beans module
Browse files Browse the repository at this point in the history
  • Loading branch information
sdeleuze committed Dec 26, 2024
1 parent 185537d commit c245e20
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public void setBeanClassLoader(ClassLoader classLoader) {


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

0 comments on commit c245e20

Please sign in to comment.