Skip to content

Commit

Permalink
formatted code from bug fixing PR
Browse files Browse the repository at this point in the history
  • Loading branch information
tglman committed Jul 14, 2020
1 parent 64c0f54 commit 5322245
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,13 @@ protected ORidBag readRidBag(BytesContainer bytes) {
if (size > 0) {
for (int i = 0; i < size; i++) {
OIdentifiable id = readOptimizedLink(bytes);
if (id.equals(NULL_RECORD_ID))
bag.add(null);
else
bag.add(id);
if (id.equals(NULL_RECORD_ID)) bag.add(null);
else bag.add(id);
}

// The bag will mark the elements we just added as new events
// and marking the entire bag as a dirty transaction {@link OEmbeddedRidBag#transactionDirty}
// and marking the entire bag as a dirty transaction {@link
// OEmbeddedRidBag#transactionDirty}
// although we just deserialized it so there are no changes and the transaction isn't dirty
bag.transactionClear();
}
Expand Down

0 comments on commit 5322245

Please sign in to comment.