diff options
Diffstat (limited to 'scalalib/src/Lib.scala')
-rw-r--r-- | scalalib/src/Lib.scala | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/scalalib/src/Lib.scala b/scalalib/src/Lib.scala index bd535efd..2706850e 100644 --- a/scalalib/src/Lib.scala +++ b/scalalib/src/Lib.scala @@ -126,10 +126,11 @@ object Lib{ case f: AnnotatedFingerprint => val annotationCls = cl.loadClass(f.annotationName()).asInstanceOf[Class[Annotation]] f.isModule == isModule && - ( - cls.isAnnotationPresent(annotationCls) || - cls.getDeclaredMethods.exists(_.isAnnotationPresent(annotationCls)) - ) + ( + cls.isAnnotationPresent(annotationCls) || + cls.getDeclaredMethods.exists(_.isAnnotationPresent(annotationCls)) || + cls.getMethods.exists(m => m.isAnnotationPresent(annotationCls) && Modifier.isPublic(m.getModifiers())) + ) }.map { f => (cls, f) } } |