FIX: check platform on multiple annotations like '@Formula(platform=...)' (#1495)

This commit is contained in:
Roland Praml
2018-09-26 20:55:39 +12:00
committed by Rob Bygrave
parent fe71c7cc4e
commit a83a4fa1c4
@@ -82,12 +82,12 @@ public abstract class AnnotationBase {
T a = null;
Field field = prop.getField();
if (field != null) {
a = AnnotationUtil.findAnnotation(field, annClass);
a = AnnotationUtil.findAnnotation(field, annClass, platform);
}
if (a == null) {
Method method = prop.getReadMethod();
if (method != null) {
a = AnnotationUtil.findAnnotation(method, annClass);
a = AnnotationUtil.findAnnotation(method, annClass, platform);
}
}
return a;