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