]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-2242: Corrected several variable names to properly indicate node hierarchy.
authorAron Roberts <aron@socrates.berkeley.edu>
Fri, 25 Jun 2010 22:53:25 +0000 (22:53 +0000)
committerAron Roberts <aron@socrates.berkeley.edu>
Fri, 25 Jun 2010 22:53:25 +0000 (22:53 +0000)
services/common/src/main/java/org/collectionspace/services/common/document/DocumentUtils.java

index cb0e77ff66e8958c8ab7a93b0a9a044999681897..9a261a0951a422df44a8412fd6faf8215eb6ca0a 100644 (file)
@@ -314,11 +314,11 @@ public class DocumentUtils {
     private static Object getMultiValues(Node node) throws Exception {
        Object result = null;           
        
-        Node child = removeTextNodes(node);
-        NodeList grandChildren = child.getChildNodes();
-        for (int j = 0; j < grandChildren.getLength(); j++) {
+        Node nodeWithoutTextNodes = removeTextNodes(node);
+        NodeList children = nodeWithoutTextNodes.getChildNodes();
+        for (int j = 0; j < children.getLength(); j++) {
 
-            Node grandChild = grandChildren.item(j).getFirstChild();
+            Node grandChild = children.item(j).getFirstChild();
 
             // If any grandchild is non-null, return values for all grandchildren.
             if (grandChild != null) {