Fix for HHH-4646 and HHH-5177: removing unneeded addPropertiesFromClassRec method
This commit is contained in:
parent
65e14bb39b
commit
c6a6e5cea1
|
@ -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