File tree 1 file changed +4
-3
lines changed
spring-core/src/main/java/org/springframework/lang
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2024 the original author or authors.
2
+ * Copyright 2002-2023 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
22
22
import java .lang .annotation .RetentionPolicy ;
23
23
import java .lang .annotation .Target ;
24
24
25
- import javax .annotation .CheckForNull ;
25
+ import javax .annotation .Nonnull ;
26
26
import javax .annotation .meta .TypeQualifierNickname ;
27
+ import javax .annotation .meta .When ;
27
28
28
29
/**
29
30
* A common Spring annotation to declare that annotated elements can be {@code null}
49
50
@ Target ({ElementType .METHOD , ElementType .PARAMETER , ElementType .FIELD })
50
51
@ Retention (RetentionPolicy .RUNTIME )
51
52
@ Documented
52
- @ CheckForNull
53
+ @ Nonnull ( when = When . MAYBE )
53
54
@ TypeQualifierNickname
54
55
public @interface Nullable {
55
56
}
You can’t perform that action at this time.
0 commit comments