fix problem in definition of @WithProcessorOption
Signed-off-by: Gavin King <gavin@hibernate.org>
This commit is contained in:
parent
503cd3e9ed
commit
fec6f862d9
|
@ -7,29 +7,26 @@
|
||||||
package org.hibernate.processor.test.util;
|
package org.hibernate.processor.test.util;
|
||||||
|
|
||||||
import java.lang.annotation.Documented;
|
import java.lang.annotation.Documented;
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.Repeatable;
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
||||||
import java.lang.annotation.RetentionPolicy;
|
|
||||||
import java.lang.annotation.Target;
|
import java.lang.annotation.Target;
|
||||||
|
|
||||||
import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
|
|
||||||
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.METHOD;
|
||||||
import static java.lang.annotation.ElementType.PARAMETER;
|
import static java.lang.annotation.ElementType.TYPE;
|
||||||
import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Hardy Ferentschik
|
* @author Hardy Ferentschik
|
||||||
*/
|
*/
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
@Repeatable(WithProcessorOption.List.class)
|
||||||
@Target({ ElementType.TYPE, ElementType.METHOD })
|
@Retention(RUNTIME)
|
||||||
|
@Target({ TYPE, METHOD })
|
||||||
public @interface WithProcessorOption {
|
public @interface WithProcessorOption {
|
||||||
String key();
|
String key();
|
||||||
|
|
||||||
String value();
|
String value();
|
||||||
|
|
||||||
@Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER })
|
@Target({ METHOD, TYPE })
|
||||||
@Retention(RUNTIME)
|
@Retention(RUNTIME)
|
||||||
@Documented
|
@Documented
|
||||||
@interface List {
|
@interface List {
|
||||||
|
|
Loading…
Reference in New Issue