make ManagedTransactionFactoryImpl's internal methods protected 32/75932/2
authorMichael Vorburger <vorburger@redhat.com>
Mon, 10 Sep 2018 15:21:36 +0000 (17:21 +0200)
committerMichael Vorburger <vorburger@redhat.com>
Mon, 10 Sep 2018 17:51:04 +0000 (17:51 +0000)
instead of package local, just on the off chance that this currently
entirely package local class will be made public when moving to mdsal.

Change-Id: Ic35f5060dd5339b99fd3ad40e3cce15fe644a191
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
mdsalutil/mdsalutil-api/src/main/java/org/opendaylight/genius/infra/ManagedTransactionFactoryImpl.java

index 357d0e955833230d3cdfa160e31ec37f9c378577..e16e97086d1f99464e8f7a733e5299a583d9e75c 100644 (file)
@@ -79,7 +79,7 @@ class ManagedTransactionFactoryImpl implements ManagedTransactionFactory {
             TypedWriteTransactionImpl::new, txConsumer, (realTx, wrappedTx) -> realTx.commit());
     }
 
-    <D extends Datastore, T extends WriteTransaction, W, E extends Exception> FluentFuture<Void>
+    protected <D extends Datastore, T extends WriteTransaction, W, E extends Exception> FluentFuture<Void>
         callWithNewTransactionAndSubmit(
             Class<D> datastoreType, Supplier<T> txSupplier, BiFunction<Class<D>, T, W> txWrapper,
             InterruptibleCheckedConsumer<W, E> txConsumer, BiFunction<T, W, FluentFuture<?>> txSubmitter) {
@@ -90,7 +90,7 @@ class ManagedTransactionFactoryImpl implements ManagedTransactionFactory {
     }
 
     @SuppressWarnings("checkstyle:IllegalCatch")
-    <D extends Datastore, T extends WriteTransaction, W, R, E extends Exception> FluentFuture<R>
+    protected <D extends Datastore, T extends WriteTransaction, W, R, E extends Exception> FluentFuture<R>
         applyWithNewTransactionAndSubmit(
             Class<D> datastoreType, Supplier<T> txSupplier, BiFunction<Class<D>, T, W> txWrapper,
             InterruptibleCheckedFunction<W, R, E> txFunction, BiFunction<T, W, FluentFuture<?>> txSubmitter) {