Improved the performance of findAnnotation (#1177)

This commit is contained in:
Roland Praml authored and Rob Bygrave committed 2017-10-19 09:34:57 +13:00
1 parent 4a66d0be6b
commit 2263d31f46
13 files changed
+116 -145

No files matched your search

@@ -5,7 +5,7 @@ import io.ebean.annotation.ChangeLogInsertMode;
import io.ebean.event.BeanPersistRequest;
import io.ebean.event.changelog.ChangeLogFilter;
import io.ebean.event.changelog.ChangeLogRegister;
import io.ebeaninternal.server.deploy.parse.AnnotationBase;
import io.ebean.util.AnnotationUtil;
import java.util.Collections;
import java.util.HashSet;
@@ -52,7 +52,7 @@ public class DefaultChangeLogRegister implements ChangeLogRegister {
* Find and return the ChangeLog annotation in the inheritance hierarchy.
*/
private ChangeLog getChangeLog(Class<?> beanType) {
return AnnotationBase.findAnnotationRecursive(beanType, ChangeLog.class);
return AnnotationUtil.findAnnotationRecursive(beanType, ChangeLog.class);
}
/**