jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [1/4] jena git commit: Tidy up comments for langMatches
Date Fri, 09 Sep 2016 15:00:27 GMT
Repository: jena
Updated Branches:
  refs/heads/master 9f27e0a5c -> 8f621c945


Tidy up comments for langMatches

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

Branch: refs/heads/master
Commit: db346be15120bce5f7916df00d75ce3d850ca7d6
Parents: 9f27e0a
Author: Andy Seaborne <andy@apache.org>
Authored: Fri Sep 9 12:11:28 2016 +0100
Committer: Andy Seaborne <andy@apache.org>
Committed: Fri Sep 9 12:11:28 2016 +0100

----------------------------------------------------------------------
 .../sparql/expr/nodevalue/NodeFunctions.java    | 25 ++++----------------
 1 file changed, 4 insertions(+), 21 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/db346be1/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 b0a2c4d..3aa8db3 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
@@ -280,28 +280,11 @@ public class NodeFunctions {
         /*
          * RFC 4647 basic filtering.
          * 
-         * To do extended: 1. Remove any -*- (but not *-) 2. Compare primary
-         * tags. 3. Is the remaining range a subsequence of the remaining
-         * language tag?
+         * Notes for extended:
+         *  1. Remove any -*- (but not *-)
+         *  2. Compare primary tags.
+         *  3. Is the remaining range a subsequence of the remaining language tag?
          */
-
-        // // Step one: remove "-*-" (but not "*-")
-        // int j = 1 ;
-        // for ( int i = 1 ; i < langRangeElts.length ; i++ )
-        // {
-        // String range = langRangeElts[i] ;
-        // if ( range.equals("*") )
-        // continue ;
-        // langRangeElts[j] = range ;
-        // j++ ;
-        // }
-        //
-        // // Null fill any free space.
-        // for ( int i = j ; i < langRangeElts.length ; i++ )
-        // langRangeElts[i] = null ;
-
-        // This is basic specific.
-
         if ( langRangeElts.length > langElts.length )
             // Lang tag longer than pattern tag => can't match
             return NodeValue.FALSE ;


Mime
View raw message