< prev index next >

test/langtools/tools/javac/processing/environment/round/annot/AnnotatedElementInfo.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 2018, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.

@@ -19,18 +19,22 @@
  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  * or visit www.oracle.com if you need additional information or have any
  * questions.
  */
 
+package annot;
+
 import java.lang.annotation.*;
 import static java.lang.annotation.RetentionPolicy.*;
+import static java.lang.annotation.ElementType.*;
 
 /**
  * Hold information about the set of elements expected to be annotated
  * with a given annotation.
  */
 @Retention(RUNTIME)
+@Target({TYPE, MODULE, PACKAGE})
 public @interface AnnotatedElementInfo {
     String annotationName();
     int expectedSize();
     String[] names();
 }
< prev index next >