Skip to content

Commit

Permalink
Remove the type target from the @CacheControl annotation
Browse files Browse the repository at this point in the history
`@CacheControl` works only at the method level, and it doesn't much
useful to speficy at the resource level, because resources typically
contain methods with different caching behaviour.

Fixes #2226
  • Loading branch information
arteam committed Dec 14, 2017
1 parent 9106a3b commit f4463a1
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -12,7 +12,7 @@
* the annotated method.
*/
@Documented
@Target({ElementType.TYPE, ElementType.METHOD})
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface CacheControl {
/**
Expand Down

0 comments on commit f4463a1

Please sign in to comment.