jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [2/6] jena git commit: Clean up.
Date Tue, 27 Sep 2016 20:11:44 GMT
Clean up.

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

Branch: refs/heads/master
Commit: f9f2870e29fd1ac51c49740a42f6fbb644b7616d
Parents: cc2c4bd
Author: Andy Seaborne <andy@apache.org>
Authored: Sat Sep 17 17:02:50 2016 +0100
Committer: Andy Seaborne <andy@apache.org>
Committed: Sat Sep 17 17:02:50 2016 +0100

----------------------------------------------------------------------
 .../tdb/store/nodetable/NodeTableReadonly.java  |  6 +--
 .../tdb/store/nodetable/NodeTableWrapper.java   | 44 ++++++++++----------
 2 files changed, 24 insertions(+), 26 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/f9f2870e/jena-tdb/src/main/java/org/apache/jena/tdb/store/nodetable/NodeTableReadonly.java
----------------------------------------------------------------------
diff --git a/jena-tdb/src/main/java/org/apache/jena/tdb/store/nodetable/NodeTableReadonly.java
b/jena-tdb/src/main/java/org/apache/jena/tdb/store/nodetable/NodeTableReadonly.java
index 963c341..c09140f 100644
--- a/jena-tdb/src/main/java/org/apache/jena/tdb/store/nodetable/NodeTableReadonly.java
+++ b/jena-tdb/src/main/java/org/apache/jena/tdb/store/nodetable/NodeTableReadonly.java
@@ -24,14 +24,12 @@ import org.apache.jena.tdb.store.NodeId ;
 
 public class NodeTableReadonly extends NodeTableWrapper
 {
-    public NodeTableReadonly(NodeTable nodeTable)
-    {
+    public NodeTableReadonly(NodeTable nodeTable) {
         super(nodeTable) ;
     }
 
     @Override
-    public NodeId getAllocateNodeId(Node node)
-    {
+    public NodeId getAllocateNodeId(Node node) {
         NodeId nodeId = getNodeIdForNode(node) ;
         if ( NodeId.isDoesNotExist(nodeId) )
             throw new TDBException("Allocation attempt on NodeTableReadonly") ;

http://git-wip-us.apache.org/repos/asf/jena/blob/f9f2870e/jena-tdb/src/main/java/org/apache/jena/tdb/store/nodetable/NodeTableWrapper.java
----------------------------------------------------------------------
diff --git a/jena-tdb/src/main/java/org/apache/jena/tdb/store/nodetable/NodeTableWrapper.java
b/jena-tdb/src/main/java/org/apache/jena/tdb/store/nodetable/NodeTableWrapper.java
index 57b5182..c2378b0 100644
--- a/jena-tdb/src/main/java/org/apache/jena/tdb/store/nodetable/NodeTableWrapper.java
+++ b/jena-tdb/src/main/java/org/apache/jena/tdb/store/nodetable/NodeTableWrapper.java
@@ -30,30 +30,26 @@ public class NodeTableWrapper implements NodeTable
     protected final NodeTable nodeTable ;
     @Override
     public final NodeTable wrapped() { return nodeTable ; } 
-    
-    protected NodeTableWrapper(NodeTable nodeTable)
-    {
+
+    protected NodeTableWrapper(NodeTable nodeTable) {
         this.nodeTable = nodeTable ;
     }
-    
+
     @Override
-    public NodeId getAllocateNodeId(Node node)
-    {
+    public NodeId getAllocateNodeId(Node node) {
         return nodeTable.getAllocateNodeId(node) ;
     }
 
     @Override
-    public NodeId getNodeIdForNode(Node node)
-    {
+    public NodeId getNodeIdForNode(Node node) {
         return nodeTable.getNodeIdForNode(node) ;
     }
 
     @Override
-    public Node getNodeForNodeId(NodeId id)
-    {
+    public Node getNodeForNodeId(NodeId id) {
         return nodeTable.getNodeForNodeId(id) ;
     }
-    
+
     @Override
     public boolean containsNode(Node node) {
         return nodeTable.containsNode(node) ;
@@ -61,27 +57,31 @@ public class NodeTableWrapper implements NodeTable
 
     @Override
     public boolean containsNodeId(NodeId nodeId) {
-        return nodeTable.containsNodeId(nodeId) ;    }
+        return nodeTable.containsNodeId(nodeId) ;
+    }
 
     @Override
-    public NodeId allocOffset()
-    {
+    public NodeId allocOffset() {
         return nodeTable.allocOffset() ;
     }
 
     @Override
-    public Iterator<Pair<NodeId, Node>> all()
-    {
-        return nodeTable.all();
+    public Iterator<Pair<NodeId, Node>> all() {
+        return nodeTable.all() ;
     }
 
     @Override
-    public boolean isEmpty()    { return nodeTable.isEmpty() ; }
-    
+    public boolean isEmpty() {
+        return nodeTable.isEmpty() ;
+    }
+
     @Override
-    public void sync() { nodeTable.sync() ; } 
+    public void sync() {
+        nodeTable.sync() ;
+    }
 
     @Override
-    public void close()
-    { nodeTable.close() ; }
+    public void close() {
+        nodeTable.close() ;
+    }
 }


Mime
View raw message