mirror of
https://github.com/apache/olingo-odata4.git
synced 2025-03-06 08:39:14 +00:00
[OLINGO-403] Fix
This commit is contained in:
parent
0a80d5146b
commit
977905919c
@ -56,13 +56,11 @@ public class EntityUUID implements Serializable {
|
||||
if (type == null || !Serializable.class.isAssignableFrom(type)) {
|
||||
throw new IllegalArgumentException("Invalid Entity type class: " + type);
|
||||
}
|
||||
for (Class<?> clazz : ClassUtils.hierarchy(type, ClassUtils.Interfaces.INCLUDE)) {
|
||||
if (this.type == null
|
||||
&& (clazz.getInterfaces().length == 0
|
||||
|| ArrayUtils.contains(clazz.getInterfaces(), Serializable.class)
|
||||
|| ArrayUtils.contains(clazz.getInterfaces(), EntityType.class))) {
|
||||
|
||||
this.type = clazz;
|
||||
if (this.type == null) {
|
||||
for (Class<?> clazz : ClassUtils.hierarchy(type, ClassUtils.Interfaces.INCLUDE)) {
|
||||
if (ArrayUtils.contains(clazz.getInterfaces(), EntityType.class)) {
|
||||
this.type = clazz;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user