From 97d3f84180c4b6326268aa0f7b515ce2a650e2e9 Mon Sep 17 00:00:00 2001 From: adamw Date: Thu, 21 Oct 2010 15:59:03 +0200 Subject: [PATCH] Fix for HHH-4646 and HHH-5177: removing unneeded addPropertiesFromClassRec method --- .../metadata/reader/AuditedPropertiesReader.java | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/envers/src/main/java/org/hibernate/envers/configuration/metadata/reader/AuditedPropertiesReader.java b/envers/src/main/java/org/hibernate/envers/configuration/metadata/reader/AuditedPropertiesReader.java index d6c957e17a..090baabd43 100644 --- a/envers/src/main/java/org/hibernate/envers/configuration/metadata/reader/AuditedPropertiesReader.java +++ b/envers/src/main/java/org/hibernate/envers/configuration/metadata/reader/AuditedPropertiesReader.java @@ -89,23 +89,10 @@ public class AuditedPropertiesReader { if(allClassAudited != null || !auditedPropertiesHolder.isEmpty()) { XClass superclazz = clazz.getSuperclass(); if (!clazz.isInterface() && !"java.lang.Object".equals(superclazz.getName())) { - addPropertiesFromClassRec(superclazz); + addPropertiesFromClass(superclazz); } } } - - private void addPropertiesFromClassRec(XClass clazz) { - - Audited allClassAudited = clazz.getAnnotation(Audited.class); - - XClass superclazz = clazz.getSuperclass(); - if (!clazz.isInterface() && !"java.lang.Object".equals(superclazz.getName())) { - addPropertiesFromClassRec(superclazz); - } - - addFromProperties(clazz.getDeclaredProperties("field"), "field", fieldAccessedPersistentProperties, allClassAudited); - addFromProperties(clazz.getDeclaredProperties("property"), "property", propertyAccessedPersistentProperties, allClassAudited); - } private void addFromProperties(Iterable properties, String accessType, Set persistentProperties, Audited allClassAudited) { for (XProperty property : properties) {