[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) {
|
for (ODataLink link : links) {
|
||||||
if (name.equals(link.getName())) {
|
if (name.equals(link.getName())) {
|
||||||
result = link;
|
result = link;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -111,6 +111,7 @@ public class ODataEntityImpl extends AbstractODataPayload implements ODataEntit
|
||||||
for (ODataOperation operation : operations) {
|
for (ODataOperation operation : operations) {
|
||||||
if (title.equals(operation.getTitle())) {
|
if (title.equals(operation.getTitle())) {
|
||||||
result = operation;
|
result = operation;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -136,6 +137,7 @@ public class ODataEntityImpl extends AbstractODataPayload implements ODataEntit
|
||||||
for (ODataProperty property : getProperties()) {
|
for (ODataProperty property : getProperties()) {
|
||||||
if (name.equals(property.getName())) {
|
if (name.equals(property.getName())) {
|
||||||
result = property;
|
result = property;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -177,6 +179,7 @@ public class ODataEntityImpl extends AbstractODataPayload implements ODataEntit
|
||||||
for (ODataLink link : links) {
|
for (ODataLink link : links) {
|
||||||
if (name.equals(link.getName())) {
|
if (name.equals(link.getName())) {
|
||||||
result = link;
|
result = link;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue