kwin commented on a change in pull request #1: SLING-7194 AdapterManager sorts 
AdapterFactory implementations lowest ranking first
URL: 
https://github.com/apache/sling-org-apache-sling-adapter/pull/1#discussion_r155612447
 
 

 ##########
 File path: 
src/main/java/org/apache/sling/adapter/internal/AdapterFactoryDescriptorMap.java
 ##########
 @@ -41,4 +42,16 @@
 
     private static final long serialVersionUID = 2L;
 
+    public AdapterFactoryDescriptorMap() {
+        super(new Comparator<ServiceReference<AdapterFactory>>() {
 
 Review comment:
   Can you just use 
https://docs.oracle.com/javase/8/docs/api/java/util/Comparator.html#reversed--?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to