java.lang.annotation.Retention



API Populatity

213 Client projects

Project: java

Package: java.lang

Project hibernate/hibernate-orm in file ...ain.java.org.hibernate.annotations.MapKeyType.java (2011-02-08)
@@ -22,12 +22,10 @@
  * Boston, MA  02110-1301  USA
  */
 package org.hibernate.annotations;
-
-import java.lang.annotation.*;
-
 import static java.lang.annotation.ElementType.FIELD;
 import static java.lang.annotation.ElementType.METHOD;
 import static java.lang.annotation.RetentionPolicy.RUNTIME;
+import java.lang.annotation.Retention;
 
 /**
  * Allows defining the type of the key of a persistent map.
Project hibernate/hibernate-orm in file ...java.org.hibernate.annotations.CollectionType.java (2012-03-26)
@@ -23,7 +23,7 @@
  */
 package org.hibernate.annotations;
 
-import java.lang.annotation.*;
+import java.lang.annotation.Retention;
 
 import static java.lang.annotation.ElementType.FIELD;
 import static java.lang.annotation.ElementType.METHOD;
Project groovy/groovy-core in file ...us.groovy.transform.DelegateASTTransformation.java (2014-03-29)
@@ -29,7 +29,6 @@ import org.codehaus.groovy.syntax.Token;
 import org.codehaus.groovy.syntax.Types;
 import org.objectweb.asm.Opcodes;
 
-import java.lang.annotation.Retention;
 import java.lang.reflect.Modifier;
 import java.util.*;
 
@@ -291,7 +290,7 @@ public class DelegateASTTransformation extends AbstractASTTransformation impleme
     private List<AnnotationNode> copyAnnotatedNodeAnnotations(final List<AnnotationNode> candidateAnnotations, final AnnotatedNode annotatedNode) {
         final ArrayList<AnnotationNode> delegateAnnotations = new ArrayList<AnnotationNode>();
         final ArrayList<AnnotationNode> notCopied = new ArrayList<AnnotationNode>();
-        copyAnnotatedNodeAnnotations(candidateAnnotations, annotatedNode, delegateAnnotations, notCopied);
+        copyAnnotatedNodeAnnotations(annotatedNode, delegateAnnotations, notCopied);
         for (AnnotationNode annotation : notCopied) {
             addError(MY_TYPE_NAME + " does not support keeping Closure annotation members.", annotation);
         }