jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1197567 - in /incubator/jena/Jena2/ARQ/trunk: src/main/java/com/hp/hpl/jena/sparql/engine/Rename.java testing/ARQ/manifest-arq.ttl
Date Fri, 04 Nov 2011 13:50:38 GMT
Author: andy
Date: Fri Nov  4 13:50:37 2011
New Revision: 1197567

URL: http://svn.apache.org/viewvc?rev=1197567&view=rev
Log:
Make function implement it's documentation.

Modified:
    incubator/jena/Jena2/ARQ/trunk/src/main/java/com/hp/hpl/jena/sparql/engine/Rename.java
    incubator/jena/Jena2/ARQ/trunk/testing/ARQ/manifest-arq.ttl

Modified: incubator/jena/Jena2/ARQ/trunk/src/main/java/com/hp/hpl/jena/sparql/engine/Rename.java
URL: http://svn.apache.org/viewvc/incubator/jena/Jena2/ARQ/trunk/src/main/java/com/hp/hpl/jena/sparql/engine/Rename.java?rev=1197567&r1=1197566&r2=1197567&view=diff
==============================================================================
--- incubator/jena/Jena2/ARQ/trunk/src/main/java/com/hp/hpl/jena/sparql/engine/Rename.java
(original)
+++ incubator/jena/Jena2/ARQ/trunk/src/main/java/com/hp/hpl/jena/sparql/engine/Rename.java
Fri Nov  4 13:50:37 2011
@@ -40,8 +40,9 @@ public class Rename
     public static Var chooseVarName(Var var, Collection<Var> inUse, String prefix)
     {
         Var var2 = var ;
-        for( ; inUse.contains(var2) ; )    
+        do {
             var2 = Var.alloc(prefix+var2.getName()) ;
+        } while (inUse.contains(var2)) ;    
         return var2 ;
     }
     
@@ -143,7 +144,7 @@ public class Rename
             // Really safe - use the global allocator.
             //var2 = allocator.allocVar() ;
             
-            var2 = Rename.chooseVarName(var2, constants, prefix) ;
+            var2 = Rename.chooseVarName(var, constants, prefix) ;
             aliases.put(var, var2) ;
             return var2 ; 
         }

Modified: incubator/jena/Jena2/ARQ/trunk/testing/ARQ/manifest-arq.ttl
URL: http://svn.apache.org/viewvc/incubator/jena/Jena2/ARQ/trunk/testing/ARQ/manifest-arq.ttl?rev=1197567&r1=1197566&r2=1197567&view=diff
==============================================================================
--- incubator/jena/Jena2/ARQ/trunk/testing/ARQ/manifest-arq.ttl (original)
+++ incubator/jena/Jena2/ARQ/trunk/testing/ARQ/manifest-arq.ttl Fri Nov  4 13:50:37 2011
@@ -25,7 +25,7 @@
         <Describe/manifest.ttl>
         <Ask/manifest.ttl>
 
-        <Dataset/manifest.n3>
+        <Dataset/manifest.ttl>
 
         <Bound/manifest.n3>
         <Expr/manifest.ttl>



Mime
View raw message