summaryrefslogtreecommitdiffstats
path: root/ri/src/main/java/javax/annotation/WillCloseWhenClosed.java
blob: 13c927d66f5e6b69b442f7499d8ea8a70942a177 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package javax.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

@Documented
@Retention(RetentionPolicy.RUNTIME)
/**
 * Used to annotate a constructor/factory parameter to indicate that returned
 * object (X) will close the resource when X is closed.
 */
public @interface WillCloseWhenClosed {

}