Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

fn:collection#98

Closed
pavlopoul wants to merge 8 commits intoapache:masterfrom
pavlopoul:pavlopoul/collection
Closed

fn:collection#98
pavlopoul wants to merge 8 commits intoapache:masterfrom
pavlopoul:pavlopoul/collection

Conversation

@pavlopoul
Copy link
Copy Markdown
Contributor

No description provided.

Conflicts:
	vxquery-xtest/src/test/resources/ExpectedTestResults/Json/Parser/q14_parser.txt
	vxquery-xtest/src/test/resources/Queries/XQuery/Json/Object/q13_object.xq
Conflicts:
	vxquery-xtest/src/test/resources/Queries/XQuery/Json/Parser/q13_parser.xq
	vxquery-xtest/src/test/resources/cat/JsonParserQueries.xml
Conflicts:
	vxquery-xtest/src/test/resources/ExpectedTestResults/Json/Parser/q14_parser.txt
	vxquery-xtest/src/test/resources/Queries/XQuery/Json/Object/q13_object.xq
	vxquery-xtest/src/test/resources/Queries/XQuery/Json/Object/q14_object.xq
LOGGER.fine("Starting to read JSON document: " + file.getAbsolutePath());
}
try {
JSONParser jparser = new JSONParser();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Create one parser.

if (LOGGER.isLoggable(Level.FINE)) {
LOGGER.fine("Starting to read XML document: " + xmlDocument.getAbsolutePath());
File file = it.next();
if (file.getName().toLowerCase().endsWith(".xml")) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we pull the file.getName().toLowerCase() into a variable, so that it won't be evaluated twice?

@pavlopoul pavlopoul closed this Jul 19, 2016
@pavlopoul pavlopoul deleted the pavlopoul/collection branch July 19, 2016 16:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants