Annotate mdsal-binding-api with @NonNull
[mdsal.git] / binding / mdsal-binding-api / src / main / java / org / opendaylight / mdsal / binding / api / DataTreeCommitCohortRegistry.java
index ec30a938e78ac931669e583ce73966063758fd74..811ed33bfc6692126c0de15cd088fbdbbfd087a3 100644 (file)
@@ -5,9 +5,9 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-
 package org.opendaylight.mdsal.binding.api;
 
+import org.eclipse.jdt.annotation.NonNull;
 import org.opendaylight.yangtools.concepts.ObjectRegistration;
 import org.opendaylight.yangtools.yang.binding.DataObject;
 
@@ -18,10 +18,8 @@ import org.opendaylight.yangtools.yang.binding.DataObject;
  * See {@link DataTreeCommitCohort} for more details.
  *
  * @author Tony Tkacik <ttkacik@cisco.com>
- *
  */
 public interface DataTreeCommitCohortRegistry {
-
     /**
      * Register commit cohort which will participate in three-phase commit protocols of write
      * transaction in data broker associated with this instance of extension.
@@ -30,7 +28,6 @@ public interface DataTreeCommitCohortRegistry {
      * @param cohort Commit cohort
      * @return Registaration object for DOM Data Three Commit cohort.
      */
-    <D extends DataObject, T extends DataTreeCommitCohort<D>> ObjectRegistration<T> registerCommitCohort(
-            DataTreeIdentifier<D> subtree, T cohort);
-
+    <D extends DataObject, T extends DataTreeCommitCohort<D>> @NonNull ObjectRegistration<T> registerCommitCohort(
+            @NonNull DataTreeIdentifier<D> subtree, @NonNull T cohort);
 }