diff --git a/elide-core/src/main/java/com/yahoo/elide/core/EntityBinding.java b/elide-core/src/main/java/com/yahoo/elide/core/EntityBinding.java index 51de22288c..fd384b52b0 100644 --- a/elide-core/src/main/java/com/yahoo/elide/core/EntityBinding.java +++ b/elide-core/src/main/java/com/yahoo/elide/core/EntityBinding.java @@ -240,16 +240,6 @@ public List getAllFields() { */ private void bindEntityFields(Class cls, String type, Collection fieldOrMethodList) { for (AccessibleObject fieldOrMethod : fieldOrMethodList) { - // Special handling for Eclipse. Load missing annotations - if (fieldOrMethod.getAnnotations().length == 0 && fieldOrMethod instanceof Method) { - Method m = (Method) fieldOrMethod; - try { - fieldOrMethod = m.getDeclaringClass().getMethod(m.getName(), m.getParameterTypes()); - } catch (NoSuchMethodException | SecurityException e) { - // Not expected, leave alone - } - } - bindTriggerIfPresent(OnCreatePreSecurity.class, fieldOrMethod); bindTriggerIfPresent(OnDeletePreSecurity.class, fieldOrMethod); bindTriggerIfPresent(OnUpdatePreSecurity.class, fieldOrMethod);