[
https://issues.apache.org/jira/browse/JENA-736?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andy Seaborne updated JENA-736:
-------------------------------
Description:
This would be nice ...
{noformat}
try (QueryExecution qexec =
QueryExecutionFactory.sparqlService("http://dbpedia.org/sparql", query)) {
ResultSet results = qexec.execSelect();
for (; results.hasNext(); ) {
// Result processing is done here.
}
}
{noformat}
was:
This would be nice ...
try (QueryExecution qexec =
QueryExecutionFactory.sparqlService("http://dbpedia.org/sparql", query)) {
ResultSet results = qexec.execSelect();
for (; results.hasNext(); ) {
// Result processing is done here.
}
}
> QueryExecution should implement AutoClosable
> --------------------------------------------
>
> Key: JENA-736
> URL: https://issues.apache.org/jira/browse/JENA-736
> Project: Apache Jena
> Issue Type: Improvement
> Reporter: Benson Margulies
>
> This would be nice ...
> {noformat}
> try (QueryExecution qexec =
> QueryExecutionFactory.sparqlService("http://dbpedia.org/sparql", query)) {
> ResultSet results = qexec.execSelect();
> for (; results.hasNext(); ) {
> // Result processing is done here.
> }
> }
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.2#6252)