jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [6/7] jena git commit: Use non-null key for the cache key.
Date Wed, 25 Apr 2018 10:09:57 GMT
Use non-null key for the cache key.

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

Branch: refs/heads/master
Commit: 5ea93ce07340fee4e2434a09afa682722017a8d8
Parents: 62443ac
Author: Andy Seaborne <andy@apache.org>
Authored: Tue Apr 24 19:08:10 2018 +0100
Committer: Andy Seaborne <andy@apache.org>
Committed: Tue Apr 24 19:08:10 2018 +0100

----------------------------------------------------------------------
 .../java/org/apache/jena/tdb2/store/DatasetGraphSwitchable.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/5ea93ce0/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/store/DatasetGraphSwitchable.java
----------------------------------------------------------------------
diff --git a/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/store/DatasetGraphSwitchable.java
b/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/store/DatasetGraphSwitchable.java
index cfd4792..d2c8402 100644
--- a/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/store/DatasetGraphSwitchable.java
+++ b/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/store/DatasetGraphSwitchable.java
@@ -113,7 +113,7 @@ public class DatasetGraphSwitchable extends DatasetGraphWrapper
     @Override
     public Graph getGraph(Node gn) {
         Node key = ( gn != null ) ? gn : Quad.defaultGraphNodeGenerated;
-        return ngCache.getOrFill(gn, ()->GraphViewSwitchable.createNamedGraph(this, key));
+        return ngCache.getOrFill(key, ()->GraphViewSwitchable.createNamedGraph(this, key));
     }
 
     // TDB2 specific.


Mime
View raw message