diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-08-20 02:58:09 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-08-20 02:58:09 +0000 |
commit | e16b71858955a18e5e82b23eb9c1f920834a2b8f (patch) | |
tree | d49bb24673619237babafdd1f8c8014897642383 /java/sca/modules/implementation-java-runtime/src/main | |
parent | 70262376b1dd5d59e1633c9c22250983b5c8a544 (diff) |
Fix for ASM_5026 related property processing
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@806026 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/implementation-java-runtime/src/main')
-rw-r--r-- | java/sca/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/JavaPropertyValueObjectFactory.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/java/sca/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/JavaPropertyValueObjectFactory.java b/java/sca/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/JavaPropertyValueObjectFactory.java index 84ccc20be9..01c3b148f8 100644 --- a/java/sca/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/JavaPropertyValueObjectFactory.java +++ b/java/sca/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/JavaPropertyValueObjectFactory.java @@ -317,8 +317,9 @@ public class JavaPropertyValueObjectFactory implements PropertyValueFactory { List<Node> propValues = new ArrayList<Node>(); NodeList nodes = rootElement.getChildNodes(); for (int count = 0; count < nodes.getLength(); ++count) { - if (nodes.item(count).getNodeType() == Document.ELEMENT_NODE) { - propValues.add(DOMHelper.promote(nodes.item(count))); + Node node = nodes.item(count); + if (node.getNodeType() == Document.ELEMENT_NODE) { + propValues.add(DOMHelper.promote(node)); } } return propValues; |