incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1558735 - /sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/helper/StarResource.java
Date Thu, 16 Jan 2014 10:07:21 GMT
Author: cziegeler
Date: Thu Jan 16 10:07:21 2014
New Revision: 1558735

URL: http://svn.apache.org/r1558735
Log:
Don't use deprecated method

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

Modified: sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/helper/StarResource.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/helper/StarResource.java?rev=1558735&r1=1558734&r2=1558735&view=diff
==============================================================================
--- sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/helper/StarResource.java
(original)
+++ sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/helper/StarResource.java
Thu Jan 16 10:07:21 2014
@@ -75,12 +75,12 @@ public class StarResource extends Synthe
      * method to dynamically resolve the resource super type of this star
      * resource.
      */
+    @Override
     public String getResourceSuperType() {
         // Yes, this isn't how you're supposed to compare Strings, but this is
         // intentional.
         if (resourceSuperType == UNSET_RESOURCE_SUPER_TYPE) {
-            resourceSuperType = ResourceUtil.getResourceSuperType(
-                    this.getResourceResolver(), this.getResourceType());
+            resourceSuperType = this.getResourceResolver().getParentResourceType(this.getResourceType());
         }
         return resourceSuperType;
     }



Mime
View raw message