You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2011/09/26 14:40:54 UTC
svn commit: r1175836 -
/incubator/jena/Jena2/ARQ/trunk/src/com/hp/hpl/jena/sparql/util/ResultSetUtils.java
Author: andy
Date: Mon Sep 26 12:40:54 2011
New Revision: 1175836
URL: http://svn.apache.org/viewvc?rev=1175836&view=rev
Log:
Tidy up - "suggested feature" was not a code contribution.
Modified:
incubator/jena/Jena2/ARQ/trunk/src/com/hp/hpl/jena/sparql/util/ResultSetUtils.java
Modified: incubator/jena/Jena2/ARQ/trunk/src/com/hp/hpl/jena/sparql/util/ResultSetUtils.java
URL: http://svn.apache.org/viewvc/incubator/jena/Jena2/ARQ/trunk/src/com/hp/hpl/jena/sparql/util/ResultSetUtils.java?rev=1175836&r1=1175835&r2=1175836&view=diff
==============================================================================
--- incubator/jena/Jena2/ARQ/trunk/src/com/hp/hpl/jena/sparql/util/ResultSetUtils.java (original)
+++ incubator/jena/Jena2/ARQ/trunk/src/com/hp/hpl/jena/sparql/util/ResultSetUtils.java Mon Sep 26 12:40:54 2011
@@ -35,11 +35,12 @@ public class ResultSetUtils
* Extracts a List filled with the binding of selectElement variable for each
* query solution as RDFNodes (Resources or Literals).
* Exhausts the result set. Create a rewindable one to use multiple times.
- * Suggested by James Howison
+ *
* @see com.hp.hpl.jena.query.ResultSetFactory
*/
public static List<RDFNode> resultSetToList(ResultSet rs, String selectElement)
- {
+ {
+ // feature suggested by James Howison
List<RDFNode> items = new ArrayList<RDFNode>() ;
while (rs.hasNext())
{
@@ -50,18 +51,17 @@ public class ResultSetUtils
return items ;
}
- /*Suggested by James Howison. */
/**
* Extracts a List filled with the binding of selectElement variable for each
* query solution, turned into a string (URIs or lexical forms).
* Exhausts the result set. Create a rewindable one to use multiple times.
* @see com.hp.hpl.jena.query.ResultSetFactory
- *
*/
public static List<String> resultSetToStringList(ResultSet rs,
String selectElement,
String literalOrResource)
{
+ // feature suggested by James Howison
List<String> items = new ArrayList<String>() ;
while (rs.hasNext())
{