internal variable rename
authorJustin Edelson <justin@apache.org>
Mon, 5 Dec 2016 19:10:51 +0000 (19:10 +0000)
committerJustin Edelson <justin@apache.org>
Mon, 5 Dec 2016 19:10:51 +0000 (19:10 +0000)
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1772745 13f79535-47bb-0310-9956-ffa450edef68

src/main/java/org/apache/sling/models/impl/injectors/ChildResourceInjector.java

index 31c6b6f..a4c73c6 100644 (file)
@@ -62,11 +62,11 @@ public class ChildResourceInjector extends AbstractInjector implements Injector,
         return null;
     }
 
-    private Object getValue(Resource adaptable, Type declaredType) {
+    private Object getValue(Resource child, Type declaredType) {
         if (declaredType instanceof Class) {
-            return adaptable;
+            return child;
         } else if (isDeclaredTypeCollection(declaredType)) {
-            return getResultList(adaptable, declaredType);
+            return getResultList(child, declaredType);
         } else {
             return null;
         }