This is an automated email from the git hooks/post-receive script. eugene-guest pushed a commit to annotated tag OpenBSD in repository testng.
commit ab9105b5c84ee40c5ef925b7dc72e4681d3531b1 Author: Cedric Beust <[email protected]> Date: Sun May 3 18:52:12 2015 -0700 Fix cast. --- .../org/testng/internal/annotations/JDK15AnnotationFinder.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/testng/internal/annotations/JDK15AnnotationFinder.java b/src/main/java/org/testng/internal/annotations/JDK15AnnotationFinder.java index cc2df3d..b7c502a 100755 --- a/src/main/java/org/testng/internal/annotations/JDK15AnnotationFinder.java +++ b/src/main/java/org/testng/internal/annotations/JDK15AnnotationFinder.java @@ -48,7 +48,9 @@ import org.testng.internal.collections.Pair; */ public class JDK15AnnotationFinder implements IAnnotationFinder { private JDK15TagFactory m_tagFactory = new JDK15TagFactory(); - private Map<Class<? extends IAnnotation>, Class<? extends Annotation>> m_annotationMap = Collections.synchronizedMap(Maps.<Class<? extends IAnnotation>, Class<? extends Annotation>>newHashMap()); + private Map<Class<? extends IAnnotation>, Class<? extends Annotation>> m_annotationMap = + Collections.synchronizedMap(Maps.<Class<? extends IAnnotation>, + Class<? extends Annotation>>newHashMap()); private IAnnotationTransformer m_transformer = null; @SuppressWarnings({"deprecation"}) @@ -74,16 +76,16 @@ public class JDK15AnnotationFinder implements IAnnotationFinder { m_annotationMap.put(IListeners.class, Listeners.class); } - private <A extends Annotation> A findAnnotationInSuperClasses(Class cls, Class<A> a) { + private <A extends Annotation> A findAnnotationInSuperClasses(Class<?> cls, Class<A> a) { // Hack for @Listeners: we don't look in superclasses for this annotation // because inheritance of this annotation causes aggregation instead of // overriding if (a.equals(org.testng.annotations.Listeners.class)) { - return (A) cls.getAnnotation(a); + return cls.getAnnotation(a); } else { while (cls != null) { - A result = (A) cls.getAnnotation(a); + A result = cls.getAnnotation(a); if (result != null) { return result; } else { -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/testng.git _______________________________________________ pkg-java-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits

