This is an automated email from the ASF dual-hosted git repository. joshtynjala pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-compiler.git
commit c129d766df339ce18a83f19565db6b08705e7b69 Author: Josh Tynjala <[email protected]> AuthorDate: Wed Feb 17 15:11:13 2021 -0800 playerglobal-source-gen: more build tweaks --- playerglobal-source-gen/pom.xml | 2 +- .../org/apache/royale/playerglobal/PlayerglobalSourceGen.java | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/playerglobal-source-gen/pom.xml b/playerglobal-source-gen/pom.xml index aa3ec9d..2f7825d 100644 --- a/playerglobal-source-gen/pom.xml +++ b/playerglobal-source-gen/pom.xml @@ -80,7 +80,7 @@ <dependency> <groupId>org.dom4j</groupId> <artifactId>dom4j</artifactId> - <version>2.1.3</version> + <version>1.6.1</version> </dependency> </dependencies> diff --git a/playerglobal-source-gen/src/main/java/org/apache/royale/playerglobal/PlayerglobalSourceGen.java b/playerglobal-source-gen/src/main/java/org/apache/royale/playerglobal/PlayerglobalSourceGen.java index 9a95dee..8b0aa7a 100644 --- a/playerglobal-source-gen/src/main/java/org/apache/royale/playerglobal/PlayerglobalSourceGen.java +++ b/playerglobal-source-gen/src/main/java/org/apache/royale/playerglobal/PlayerglobalSourceGen.java @@ -166,13 +166,16 @@ class PlayerglobalSourceGen { } private void parsePackage(Element apiPackageElement) throws Exception { - for (Element apiOperationElement : apiPackageElement.elements("apiOperation")) { + List<Element> apiOperationElements = apiPackageElement.elements("apiOperation"); + for (Element apiOperationElement : apiOperationElements) { parsePackageFunction(apiOperationElement); } - for (Element apiValueElement : apiPackageElement.elements("apiValue")) { + List<Element> apiValueElements = apiPackageElement.elements("apiValue"); + for (Element apiValueElement : apiValueElements) { parsePackageVariable(apiValueElement); } - for (Element apiClassifierElement : apiPackageElement.elements("apiClassifier")) { + List<Element> apiClassifierElements = apiPackageElement.elements("apiClassifier"); + for (Element apiClassifierElement : apiClassifierElements) { Element apiClassifierDetailElement = apiClassifierElement.element("apiClassifierDetail"); if (apiClassifierDetailElement == null) { String fullyQualifiedName = apiClassifierElement.attributeValue("id");
