[OLINGO-613] break when property or link is found

This commit is contained in:
Christian Amend 2015-04-14 18:09:37 +02:00
parent b76ebe95d1
commit 29e2833541
2 changed files with 4 additions and 0 deletions

View File

@ -111,6 +111,7 @@ public class ODataComplexValueImpl extends AbstractODataValue implements ODataCo
for (ODataLink link : links) {
if (name.equals(link.getName())) {
result = link;
break;
}
}

View File

@ -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;
}
}