jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [08/11] jena git commit: Fix: chekc pattern arg for "*".
Date Sat, 19 May 2018 19:27:17 GMT
Fix: chekc pattern arg for "*".

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

Branch: refs/heads/master
Commit: 2b6207677455050aa30e60970f3ebf5e233e9c52
Parents: 84be253
Author: Andy Seaborne <andy@apache.org>
Authored: Sat May 19 18:22:00 2018 +0100
Committer: Andy Seaborne <andy@apache.org>
Committed: Sat May 19 18:22:00 2018 +0100

----------------------------------------------------------------------
 .../java/org/apache/jena/sparql/expr/nodevalue/NodeFunctions.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/2b620767/jena-arq/src/main/java/org/apache/jena/sparql/expr/nodevalue/NodeFunctions.java
----------------------------------------------------------------------
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/expr/nodevalue/NodeFunctions.java
b/jena-arq/src/main/java/org/apache/jena/sparql/expr/nodevalue/NodeFunctions.java
index 30992f0..a7cb286 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/expr/nodevalue/NodeFunctions.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/expr/nodevalue/NodeFunctions.java
@@ -288,7 +288,8 @@ public class NodeFunctions {
      * @return Whether there is a match. 
      */
     public static boolean langMatches(String langStr, String langPattern) {
-        if ( langStr.equals("*") ) {
+        if ( langPattern.equals("*") ) {
+            // Not a legal lang string.
             if ( langStr == null || langStr.equals("") )
                 return false ;
             return true ;


Mime
View raw message