We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
@CheckReturnValue
1 parent 74ee1b9 commit f601bbbCopy full SHA for f601bbb
spring-core/src/main/java/org/springframework/lang/CheckReturnValue.java
@@ -33,10 +33,13 @@
33
* and the return value is only interesting when adding an element to a set,
34
* to see if the set already contained that element before.
35
*
36
+ * <p>When used on a type, the annotation applies to all constructors and all
37
+ * methods that do not return {@code void}.
38
+ *
39
* @author Sebastien Deleuze
40
* @since 6.2
41
*/
42
@Documented
-@Target(ElementType.METHOD)
43
+@Target({ElementType.TYPE, ElementType.METHOD, ElementType.CONSTRUCTOR})
44
public @interface CheckReturnValue {
45
}
0 commit comments