sentry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ak...@apache.org
Subject [1/3] sentry git commit: SENTRY-2164: Convert uses of TransactionBlock to lambdas (Alex Kolbasov, reviewed by Na Li and Steve Moist)
Date Thu, 08 Mar 2018 00:59:06 GMT
Repository: sentry
Updated Branches:
  refs/heads/master 4cd3f1e98 -> f557a0380


http://git-wip-us.apache.org/repos/asf/sentry/blob/f557a038/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/persistent/TransactionBlock.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/persistent/TransactionBlock.java
b/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/persistent/TransactionBlock.java
index c7b19ce..6ad52a3 100644
--- a/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/persistent/TransactionBlock.java
+++ b/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/persistent/TransactionBlock.java
@@ -25,6 +25,7 @@ import javax.jdo.PersistenceManager;
  * transaction. The {@link #execute(PersistenceManager)} method returns the
  * result of the transaction.
  */
+@FunctionalInterface
 public interface TransactionBlock<T> {
   /**
    * Execute some code as a single transaction, the code should not start new


Mime
View raw message