[OLINGO-613] break when property or link is found
This commit is contained in:
parent
b76ebe95d1
commit
29e2833541
|
@ -111,6 +111,7 @@ public class ODataComplexValueImpl extends AbstractODataValue implements ODataCo
|
|||
for (ODataLink link : links) {
|
||||
if (name.equals(link.getName())) {
|
||||
result = link;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -111,6 +111,7 @@ public class ODataEntityImpl extends AbstractODataPayload implements ODataEntit
|
|||
for (ODataOperation operation : operations) {
|
||||
if (title.equals(operation.getTitle())) {
|
||||
result = operation;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -136,6 +137,7 @@ public class ODataEntityImpl extends AbstractODataPayload implements ODataEntit
|
|||
for (ODataProperty property : getProperties()) {
|
||||
if (name.equals(property.getName())) {
|
||||
result = property;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -177,6 +179,7 @@ public class ODataEntityImpl extends AbstractODataPayload implements ODataEntit
|
|||
for (ODataLink link : links) {
|
||||
if (name.equals(link.getName())) {
|
||||
result = link;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue