Switch to Objects.requireNonNull
[mdsal.git] / dom / mdsal-dom-inmemory-datastore / src / main / java / org / opendaylight / mdsal / dom / store / inmemory / InMemoryDOMDataTreeShardThreePhaseCommitCohort.java
index 1f8c9cbcd372d7b0e20d4fa49f2b31035e87a15f..e8aab53883f87cf842752be04b94c0f171e2ef25 100644 (file)
@@ -8,6 +8,8 @@
 
 package org.opendaylight.mdsal.dom.store.inmemory;
 
+import static java.util.Objects.requireNonNull;
+
 import com.google.common.base.Preconditions;
 import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
@@ -34,9 +36,9 @@ class InMemoryDOMDataTreeShardThreePhaseCommitCohort implements DOMStoreThreePha
     InMemoryDOMDataTreeShardThreePhaseCommitCohort(final DataTree dataTree,
                                                    final DataTreeModification modification,
                                                    final InMemoryDOMDataTreeShardChangePublisher changePublisher) {
-        this.dataTree = Preconditions.checkNotNull(dataTree);
-        this.modification = Preconditions.checkNotNull(modification);
-        this.changePublisher = Preconditions.checkNotNull(changePublisher);
+        this.dataTree = requireNonNull(dataTree);
+        this.modification = requireNonNull(modification);
+        this.changePublisher = requireNonNull(changePublisher);
     }
 
     @SuppressWarnings("checkstyle:IllegalCatch")