mreutegg commented on pull request #433:
URL: https://github.com/apache/jackrabbit-oak/pull/433#issuecomment-990681891


   As a compromise, how about building the json for 
ClusterView.asDescriptorValue() with the help of a sorted map? Instead of
   ```
           for (Iterator<Integer> it = activeIds.iterator(); it.hasNext();) {
               Integer anInstance = it.next();
               builder.value(anInstance);
           }
   ```
   do
   ```
           for (Iterator<Integer> it = new TreeSet<>(activeIds).iterator(); 
it.hasNext();) {
               Integer anInstance = it.next();
               builder.value(anInstance);
           }
   ```


-- 
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]


Reply via email to