You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by si...@apache.org on 2010/01/26 10:59:17 UTC
svn commit: r903151 -
/commons/sandbox/at-digester/trunk/src/java/org/apache/commons/digester/annotations/utils/AnnotationRuleProviderUtils.java
Author: simonetripodi
Date: Tue Jan 26 09:59:17 2010
New Revision: 903151
URL: http://svn.apache.org/viewvc?rev=903151&view=rev
Log:
fixed wilcards on AnnotationRuleProviderUtils#newProvider()
Modified:
commons/sandbox/at-digester/trunk/src/java/org/apache/commons/digester/annotations/utils/AnnotationRuleProviderUtils.java
Modified: commons/sandbox/at-digester/trunk/src/java/org/apache/commons/digester/annotations/utils/AnnotationRuleProviderUtils.java
URL: http://svn.apache.org/viewvc/commons/sandbox/at-digester/trunk/src/java/org/apache/commons/digester/annotations/utils/AnnotationRuleProviderUtils.java?rev=903151&r1=903150&r2=903151&view=diff
==============================================================================
--- commons/sandbox/at-digester/trunk/src/java/org/apache/commons/digester/annotations/utils/AnnotationRuleProviderUtils.java (original)
+++ commons/sandbox/at-digester/trunk/src/java/org/apache/commons/digester/annotations/utils/AnnotationRuleProviderUtils.java Tue Jan 26 09:59:17 2010
@@ -41,19 +41,15 @@
/**
* Builds a new {@link AnnotationRuleProvider} instance.
*
- * @param <A> the annotation type.
- * @param <E> the annotated element type.
- * @param <R> the reflected digester rule type.
+ * @param <T> the {@link AnnotationRuleProvider} type.
* @param klass the {@link AnnotationRuleProvider} type has to be instantiated.
* @param annotation the current visited annotation.
* @param element the current visited element.
- * @param rule the reflected commons-digester rule.
* @return a new {@link AnnotationRuleProvider} instance.
*/
- public static <A extends Annotation, E extends AnnotatedElement, R extends Rule> AnnotationRuleProvider<A, E, R> newProvider(Class<? extends AnnotationRuleProvider<A, E, R>> klass,
- A annotation,
- E element,
- R rule) {
+ public static <T extends AnnotationRuleProvider<? extends Annotation, ? extends AnnotatedElement, ? extends Rule>> T newProvider(
+ Class<T> klass,
+ Annotation annotation, AnnotatedElement element) {
Object[] args = new Object[] { annotation, element };
Class<?>[] parameterTypes = new Class<?>[] { annotation.annotationType(), element.getClass() };