You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2018/04/25 10:09:57 UTC
[6/7] jena git commit: Use non-null key for the cache key.
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 <an...@apache.org>
Authored: Tue Apr 24 19:08:10 2018 +0100
Committer: Andy Seaborne <an...@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.