rishabhdaim commented on code in PR #1969:
URL: https://github.com/apache/jackrabbit-oak/pull/1969#discussion_r1908900657
##########
oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/MissingBcSweeper2.java:
##########
@@ -158,7 +157,7 @@ public Map.Entry<Path, UpdateOp> apply(NodeDocument doc) {
lastYield = context.getClock().getTime();
yieldCnt = 0;
}
- return immutableEntry(doc.getPath(), sweepOne(doc));
+ return new SimpleImmutableEntry<>(doc.getPath(),
sweepOne(doc));
Review Comment:
since `sweepOne` could return a `null` value, we couldn't use `Map.entry`
here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]