jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [26/34] jena git commit: Typos and comments.
Date Sat, 17 Nov 2018 17:20:52 GMT
Typos and comments.

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

Branch: refs/heads/master
Commit: b1f83c2755a9c37aa9f4a185f326b2ed6660afc6
Parents: ea7c22d
Author: Andy Seaborne <andy@apache.org>
Authored: Tue Nov 13 22:01:09 2018 +0000
Committer: Andy Seaborne <andy@apache.org>
Committed: Tue Nov 13 22:01:09 2018 +0000

----------------------------------------------------------------------
 .../main/java/org/apache/jena/sparql/core/DatasetGraph.java    | 4 ++--
 jena-cmds/src/main/java/arq/cmdline/ModDatasetGeneral.java     | 2 +-
 .../main/java/org/apache/jena/dboe/trans/bplustree/BPT.java    | 6 +++---
 3 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/b1f83c27/jena-arq/src/main/java/org/apache/jena/sparql/core/DatasetGraph.java
----------------------------------------------------------------------
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/core/DatasetGraph.java b/jena-arq/src/main/java/org/apache/jena/sparql/core/DatasetGraph.java
index 23df9c9..c61e751 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/core/DatasetGraph.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/core/DatasetGraph.java
@@ -42,9 +42,9 @@ public interface DatasetGraph extends Transactional, Closeable
     /** Get the default graph as a Jena Graph */
     public Graph getDefaultGraph() ;
 
-    /** Get the graph named by graphNode : returns null on no graph 
+    /** Get the graph named by graphNode : returns null when there is no such graph. 
      * NB Whether a dataset contains a graph if there are no triples is not defined - see
the specific implementation.
-     * Some datasets are "open" - they have all graphs even if no triples,
+     * Some datasets are "open" - they have all graphs even if no triples.
      */
     public Graph getGraph(Node graphNode) ;
     

http://git-wip-us.apache.org/repos/asf/jena/blob/b1f83c27/jena-cmds/src/main/java/arq/cmdline/ModDatasetGeneral.java
----------------------------------------------------------------------
diff --git a/jena-cmds/src/main/java/arq/cmdline/ModDatasetGeneral.java b/jena-cmds/src/main/java/arq/cmdline/ModDatasetGeneral.java
index fc256f7..d2c8633 100644
--- a/jena-cmds/src/main/java/arq/cmdline/ModDatasetGeneral.java
+++ b/jena-cmds/src/main/java/arq/cmdline/ModDatasetGeneral.java
@@ -55,7 +55,7 @@ public class ModDatasetGeneral extends ModDataset
         cl.getUsage().startCategory("Dataset") ;
         cl.add(dataDecl,
                "--data=FILE",
-               "Data for the datset - triple or quad formats") ;
+               "Data for the dataset - triple or quad formats") ;
         cl.add(graphDecl,
                "--graph=FILE",
                "Graph for default graph of the datset") ;

http://git-wip-us.apache.org/repos/asf/jena/blob/b1f83c27/jena-db/jena-dboe-trans-data/src/main/java/org/apache/jena/dboe/trans/bplustree/BPT.java
----------------------------------------------------------------------
diff --git a/jena-db/jena-dboe-trans-data/src/main/java/org/apache/jena/dboe/trans/bplustree/BPT.java
b/jena-db/jena-dboe-trans-data/src/main/java/org/apache/jena/dboe/trans/bplustree/BPT.java
index b2b461a..f111914 100644
--- a/jena-db/jena-dboe-trans-data/src/main/java/org/apache/jena/dboe/trans/bplustree/BPT.java
+++ b/jena-db/jena-dboe-trans-data/src/main/java/org/apache/jena/dboe/trans/bplustree/BPT.java
@@ -56,8 +56,8 @@ public final class BPT {
 
     /** Output a lot of detailed information. */
     public static void infoAll(boolean onOrOff) { 
-        DumpTree = true ;
-        Logging = true ;
+        DumpTree = onOrOff ;
+        Logging = onOrOff ;
     }
 
     static boolean logging(Logger log) {
@@ -123,7 +123,7 @@ public final class BPT {
                 List<AccessStep> y = path.getPath().subList(0, path.getPath().size()-2)
;
                 Optional<AccessStep> z = y.stream().filter(e -> e.node.isLeaf()
).findFirst() ;
                 if ( z.isPresent() )
-                    error("promote: Leaf %s found in path but not at the tail: %s") ;
+                    error("promote: Leaf %s found in path but not at the tail: %s", z.get(),
path) ;
             }
             // Check the page/index pointers
             Optional<AccessStep> z2 = path.getPath().stream().filter(e -> e.node.ptrs.get(e.idx)
!= e.page.getId()).findFirst() ;


Mime
View raw message