You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cz...@apache.org on 2015/02/12 13:44:47 UTC

svn commit: r1659241 - /sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/CommonResourceResolverFactoryImpl.java

Author: cziegeler
Date: Thu Feb 12 12:44:46 2015
New Revision: 1659241

URL: http://svn.apache.org/r1659241
Log:
SLING-4372 : The use of finalize in ResourceResolver leads to performance issues

Modified:
    sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/CommonResourceResolverFactoryImpl.java

Modified: sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/CommonResourceResolverFactoryImpl.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/CommonResourceResolverFactoryImpl.java?rev=1659241&r1=1659240&r2=1659241&view=diff
==============================================================================
--- sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/CommonResourceResolverFactoryImpl.java (original)
+++ sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/CommonResourceResolverFactoryImpl.java Thu Feb 12 12:44:46 2015
@@ -376,7 +376,7 @@ public class CommonResourceResolverFacto
         }
 
         public int compareTo(final ResolverWeakReference o) {
-            return context.hashCode() - o.hashCode();
+            return context.hashCode() - o.context.hashCode();
         }
     }
 }
\ No newline at end of file