onami-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1435794 - /incubator/onami/trunk/test/src/main/java/org/apache/onami/test/annotation/Mock.java
Date Sun, 20 Jan 2013 07:05:38 GMT
Author: simonetripodi
Date: Sun Jan 20 07:05:38 2013
New Revision: 1435794

URL: http://svn.apache.org/viewvc?rev=1435794&view=rev
Log:
[ONAMI-57] org.apache.onami.test.annotation.Mock#annotatedWith() should define Annotation
types only

Modified:
    incubator/onami/trunk/test/src/main/java/org/apache/onami/test/annotation/Mock.java

Modified: incubator/onami/trunk/test/src/main/java/org/apache/onami/test/annotation/Mock.java
URL: http://svn.apache.org/viewvc/incubator/onami/trunk/test/src/main/java/org/apache/onami/test/annotation/Mock.java?rev=1435794&r1=1435793&r2=1435794&view=diff
==============================================================================
--- incubator/onami/trunk/test/src/main/java/org/apache/onami/test/annotation/Mock.java (original)
+++ incubator/onami/trunk/test/src/main/java/org/apache/onami/test/annotation/Mock.java Sun
Jan 20 07:05:38 2013
@@ -19,6 +19,7 @@ package org.apache.onami.test.annotation
  * under the License.
  */
 
+import java.lang.annotation.Annotation;
 import java.lang.annotation.ElementType;
 import java.lang.annotation.Inherited;
 import java.lang.annotation.Retention;
@@ -35,9 +36,9 @@ public @interface Mock
 {
 
     /**
-     * Class used to mark that no annotation binding is defined.
+     * Annotation class used to mark that no annotation binding is defined.
      */
-    public static class NoAnnotation
+    public static @interface NoAnnotation
     {
     }
 
@@ -60,7 +61,7 @@ public @interface Mock
      * Specifies an annotation {@link Class} that will be used in the <em>Google Guice</em>
binder to execute the literal
      * annotating binding.
      */
-    Class<?> annotatedWith() default NoAnnotation.class;
+    Class<? extends Annotation> annotatedWith() default NoAnnotation.class;
 
     /**
      * Specifies an {@link String} annotation that will be used in the <em>Google Guice</em>
binder to execute the



Mime
View raw message