DATACMNS-1284 - Polishing.
Backport of06116b7. Related ticket: DATACMNS-1206. Original commit:06116b7.
This commit is contained in:
committed by
Oliver Gierke
parent
428b0decd5
commit
999d26436b
@@ -122,7 +122,14 @@ class DefaultProjectionInformation implements ProjectionInformation {
|
||||
final Map<String, Integer> orders = getMethodOrder(metadata);
|
||||
|
||||
for (PropertyDescriptor descriptor : filterDefaultMethods(BeanUtils.getPropertyDescriptors(type))) {
|
||||
if (metadata == null || orders.containsKey(descriptor.getReadMethod().getName())) {
|
||||
|
||||
Method readMethod = descriptor.getReadMethod();
|
||||
|
||||
if (readMethod == null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (metadata == null || orders.containsKey(readMethod.getName())) {
|
||||
result.add(descriptor);
|
||||
}
|
||||
}
|
||||
@@ -237,6 +244,6 @@ class DefaultProjectionInformation implements ProjectionInformation {
|
||||
|
||||
Method method = descriptor.getReadMethod();
|
||||
|
||||
return method == null ? false : ReflectionUtils.isDefaultMethod(method);
|
||||
return method != null && ReflectionUtils.isDefaultMethod(method);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user