Skip to content

Commit

Permalink
odpi#5399 revert content helper change for now
Browse files Browse the repository at this point in the history
Signed-off-by: David Radley <david_radley@uk.ibm.com>
  • Loading branch information
davidradl committed Jul 21, 2021
1 parent d6877cb commit 3f3cc2e
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2222,6 +2222,12 @@ public List<Relationship> formatRelationshipResults(List<Relationship> fullRe
return null;
}


if (pageSize == 0)
{
return fullResults;
}

int fullResultsSize = fullResults.size();

if (fromElement >= fullResultsSize)
Expand Down Expand Up @@ -2254,8 +2260,6 @@ public List<Relationship> formatRelationshipResults(List<Relationship> fullRe
return fullResults;
}



int toIndex = getToIndex(fromElement, pageSize, fullResultsSize);

return new ArrayList<>(fullResults.subList(fromElement, toIndex));
Expand Down

0 comments on commit 3f3cc2e

Please sign in to comment.