Fix for HHH-4646 and HHH-5177: removing unneeded addPropertiesFromClassRec method
This commit is contained in:
parent
b274c7218b
commit
97d3f84180
|
@ -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<XProperty> properties, String accessType, Set<String> persistentProperties, Audited allClassAudited) {
|
||||
for (XProperty property : properties) {
|
||||
|
|
Loading…
Reference in New Issue