rishabhdaim commented on code in PR #1021:
URL: https://github.com/apache/jackrabbit-oak/pull/1021#discussion_r1283514398
##########
oak-run-commons/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/NodeStateEntryWriter.java:
##########
@@ -77,21 +85,30 @@ public String toString(List<String> pathElements, String
nodeStateAsJson) {
}
public String asJson(NodeState nodeState) {
+ return
asJson(StreamSupport.stream(nodeState.getProperties().spliterator(), false));
+ }
+
+ String asSortedJson(NodeState nodeState) {
+ return
asJson(StreamSupport.stream(nodeState.getProperties().spliterator(), false)
+ .sorted((o1, o2) -> o1.getName().compareTo(o2.getName())));
Review Comment:
```suggestion
.sorted(Comparator.comparing(PropertyState::getName));
```
--
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]