Skip to content

Commit 349d2dd

Browse files
committed
Allow TYPE and TYPE_USE targets for [Non]BlockingExecutor annotations
1 parent 6c46184 commit 349d2dd

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

java8/src/main/java/org/jetbrains/annotations/BlockingExecutor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,6 @@
6666
*/
6767
@Documented
6868
@Retention(RetentionPolicy.CLASS)
69-
@Target({ElementType.TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER, ElementType.TYPE_USE})
69+
@Target({ElementType.TYPE, ElementType.TYPE_USE})
7070
public @interface BlockingExecutor {
7171
}

java8/src/main/java/org/jetbrains/annotations/NonBlockingExecutor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,6 @@
6767
*/
6868
@Documented
6969
@Retention(RetentionPolicy.CLASS)
70-
@Target({ElementType.TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER, ElementType.TYPE_USE})
70+
@Target({ElementType.TYPE, ElementType.TYPE_USE})
7171
public @interface NonBlockingExecutor {
7272
}

0 commit comments

Comments
 (0)