diff --git a/CHANGELOG.md b/CHANGELOG.md index 7389f50e5d53a756e04bd8e231641307e59ff25f..5deb0f47eb91023f6df4c66ebed2a53cd695a919 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## 3.3.2 +* Updated the following dependencies + * org.reflections:reflections 0.9.12 -> 0.9.11 + + ## 3.3.1 * Updated the following dependencies diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 9bfe7ccae9a10fb50a548246873f21edc290e9f1..48cb5e81d5997ccb8eea02cc156eccf5a6285c19 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -11,6 +11,7 @@ * Evan Thompson * Joshua Shinavier <josh@fortytwo.net> * Veselin Yordanov <vesko935@gmail.com> +* Oleksandr Porunov <alexandr.porunov@gmail.com> ## Special Thanks diff --git a/pom.xml b/pom.xml index fe2ab9a84aeafd19961c342d5c83995ad40d88d8..fc791604e26e285879a26c9f7cf8d689d23d9c72 100644 --- a/pom.xml +++ b/pom.xml @@ -182,7 +182,7 @@ <dependency> <groupId>org.reflections</groupId> <artifactId>reflections</artifactId> - <version>0.9.12</version> + <version>0.9.11</version> </dependency> </dependencies> diff --git a/src/test/java/com/syncleus/ferma/ReflectionCacheTest.java b/src/test/java/com/syncleus/ferma/ReflectionCacheTest.java index 60538e5a0f4dcf152ded2c7ffa56264df64a854d..5835e4f840df54efb0da598d9b8a464adcc8a276 100644 --- a/src/test/java/com/syncleus/ferma/ReflectionCacheTest.java +++ b/src/test/java/com/syncleus/ferma/ReflectionCacheTest.java @@ -15,15 +15,15 @@ */ package com.syncleus.ferma; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.LinkedList; -import java.util.List; -import java.util.Set; import org.junit.Assert; import org.junit.Test; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +import java.util.*; + /** * * @author rqpa @@ -64,8 +64,19 @@ public class ReflectionCacheTest { public void testBadConstructorCall() { createCache(null); } - + + @Test + public void testTypesAnnotatedWithUnusedAnnotation() { + new ReflectionCache(Collections.emptySet()).getTypesAnnotatedWith(UnusedTestAnnotation.class); + } + private ReflectionCache createCache(Collection<? extends Class<?>> annotatedTypes) { return new ReflectionCache(annotatedTypes); } + + @Retention(RetentionPolicy.RUNTIME) + @Target(ElementType.TYPE) + public @interface UnusedTestAnnotation { + + } }