Skip to content

Commit

Permalink
reverse
Browse files Browse the repository at this point in the history
  • Loading branch information
wcekan committed Mar 18, 2021
1 parent 4ee83c6 commit f720136
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions elide-core/src/main/java/com/yahoo/elide/core/EntityBinding.java
Original file line number Diff line number Diff line change
Expand Up @@ -240,16 +240,6 @@ public List<AccessibleObject> getAllFields() {
*/
private void bindEntityFields(Class<?> cls, String type, Collection<AccessibleObject> 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);
Expand Down

0 comments on commit f720136

Please sign in to comment.