jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [2/3] jena git commit: calculateWrite to take a <T>
Date Wed, 04 Jan 2017 14:08:15 GMT
calculateWrite to take a <T>

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

Branch: refs/heads/master
Commit: 4d0b20f435b0c6721268544091f5d65ce267c5ab
Parents: 4459a40
Author: Andy Seaborne <andy@apache.org>
Authored: Tue Jan 3 19:24:33 2017 +0000
Committer: Andy Seaborne <andy@apache.org>
Committed: Wed Jan 4 12:41:17 2017 +0000

----------------------------------------------------------------------
 jena-arq/src/main/java/org/apache/jena/system/Txn.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/4d0b20f4/jena-arq/src/main/java/org/apache/jena/system/Txn.java
----------------------------------------------------------------------
diff --git a/jena-arq/src/main/java/org/apache/jena/system/Txn.java b/jena-arq/src/main/java/org/apache/jena/system/Txn.java
index 4aa3527..69ad6c6 100644
--- a/jena-arq/src/main/java/org/apache/jena/system/Txn.java
+++ b/jena-arq/src/main/java/org/apache/jena/system/Txn.java
@@ -82,7 +82,7 @@ public class Txn {
     }
 
     /** Execute and return a value in a write transaction. */
-    public static <T extends Transactional, X> X calculateWrite(Transactional txn,
Supplier<X> r) {
+    public static <T extends Transactional, X> X calculateWrite(T txn, Supplier<X>
r) {
         boolean b = txn.isInTransaction() ;
         if ( !b )
             txn.begin(ReadWrite.WRITE) ;


Mime
View raw message