You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Andy Seaborne (JIRA)" <ji...@apache.org> on 2014/07/02 15:10:25 UTC
[jira] [Closed] (JENA-736) QueryExecution should implement
AutoClosable
[ https://issues.apache.org/jira/browse/JENA-736?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andy Seaborne closed JENA-736.
------------------------------
Resolution: Implemented
Assignee: Andy Seaborne
> 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
> Assignee: Andy Seaborne
>
> 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)