Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-736

QueryExecution should implement AutoClosable

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Done
    • None
    • Jena 2.12.0
    • None
    • None

    Description

      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.
                  }
              }
      

      Attachments

        Activity

          People

            andy Andy Seaborne
            bmargulies Benson Margulies
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: