Skip to content

Commit

Permalink
Allow Qualifier annotations on types
Browse files Browse the repository at this point in the history
  • Loading branch information
larsgrefer committed Aug 13, 2024
1 parent 1d3d625 commit 45b1da4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* @author Lars Grefer
* @see NetworkInterceptor
*/
@Target({METHOD, FIELD, CONSTRUCTOR})
@Target({METHOD, FIELD, CONSTRUCTOR, TYPE})
@Retention(RUNTIME)
@Qualifier
public @interface ApplicationInterceptor {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.CONSTRUCTOR;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
Expand All @@ -17,7 +15,7 @@
* @see ApplicationInterceptor
*/
@SuppressWarnings("WeakerAccess")
@Target({METHOD, FIELD, CONSTRUCTOR})
@Target({METHOD, FIELD, CONSTRUCTOR, TYPE})
@Retention(RUNTIME)
@Qualifier
public @interface NetworkInterceptor {
Expand Down

0 comments on commit 45b1da4

Please sign in to comment.