jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [15/19] jena git commit: ARQ:Query:ParameterizedSparqlString - valuesReplacement now cleared by "clearParam(String var)" and "clearParams" in line with the other stored parameters.
Date Sun, 05 Aug 2018 15:33:40 GMT
ARQ:Query:ParameterizedSparqlString 
- valuesReplacement now cleared by "clearParam(String var)" and "clearParams" in line with
the other stored parameters.

Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/9c72875e
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/9c72875e
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/9c72875e

Branch: refs/heads/master
Commit: 9c72875ef6e77367877b4c8b168e520de059c77b
Parents: 16fb7ce
Author: Greg Albiston <greg_albiston@hotmail.com>
Authored: Thu Aug 2 14:54:05 2018 +0100
Committer: Greg Albiston <greg_albiston@hotmail.com>
Committed: Thu Aug 2 14:54:05 2018 +0100

----------------------------------------------------------------------
 .../org/apache/jena/query/ParameterizedSparqlString.java     | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/9c72875e/jena-arq/src/main/java/org/apache/jena/query/ParameterizedSparqlString.java
----------------------------------------------------------------------
diff --git a/jena-arq/src/main/java/org/apache/jena/query/ParameterizedSparqlString.java b/jena-arq/src/main/java/org/apache/jena/query/ParameterizedSparqlString.java
index b1b5446..5305654 100644
--- a/jena-arq/src/main/java/org/apache/jena/query/ParameterizedSparqlString.java
+++ b/jena-arq/src/main/java/org/apache/jena/query/ParameterizedSparqlString.java
@@ -1159,14 +1159,15 @@ public class ParameterizedSparqlString implements PrefixMapping {
     }
 
     /**
-     * Clears the value for a variable parameter so the given variable will not
-     * have a value injected
+     * Clears the value for a variable or values parameter so the given variable
+     * will not     * have a value injected
      * 
      * @param var
      *            Variable
      */
     public void clearParam(String var) {
         this.params.remove(var);
+        this.valuesReplacements.remove(var);
     }
 
     /**
@@ -1180,10 +1181,11 @@ public class ParameterizedSparqlString implements PrefixMapping {
     }
 
     /**
-     * Clears all values for both variable and positional parameters
+     * Clears all values for variable, values and positional parameters
      */
     public void clearParams() {
         this.params.clear();
+        this.valuesReplacements.clear();
         this.positionalParams.clear();
     }
 


Mime
View raw message