Do not generate 'isFoo()' methods
[mdsal.git] / dom / mdsal-dom-api / src / main / java / org / opendaylight / mdsal / dom / api / DOMDataTreeShardingService.java
index 4a4255c4f268816a515451d79bf452a02e402c19..d41ceb0cec0d4c0588e0e8586a0f5f6f56533a68 100644 (file)
@@ -7,7 +7,7 @@
  */
 package org.opendaylight.mdsal.dom.api;
 
-import javax.annotation.Nonnull;
+import org.eclipse.jdt.annotation.NonNull;
 import org.opendaylight.yangtools.concepts.ListenerRegistration;
 
 /**
@@ -25,7 +25,10 @@ import org.opendaylight.yangtools.concepts.ListenerRegistration;
  * <p>
  * Whenever a parent/child relationship is changed, the parent is notified, so it can
  * understand that a logical child has been attached.
+ *
+ * @deprecated This interface is scheduled for removal in the next major release.
  */
+@Deprecated(forRemoval = true)
 public interface DOMDataTreeShardingService extends DOMService {
     /**
      * Register a shard as responsible for a particular subtree prefix.
@@ -36,7 +39,7 @@ public interface DOMDataTreeShardingService extends DOMService {
      * @return A registration. To remove the shard's binding, close the registration.
      * @throws DOMDataTreeShardingConflictException if the prefix is already bound
      */
-    @Nonnull <T extends DOMDataTreeShard> ListenerRegistration<T> registerDataTreeShard(
-            @Nonnull DOMDataTreeIdentifier prefix, @Nonnull T shard,
-            @Nonnull DOMDataTreeProducer producer) throws DOMDataTreeShardingConflictException;
+    <T extends DOMDataTreeShard> @NonNull ListenerRegistration<T> registerDataTreeShard(
+            @NonNull DOMDataTreeIdentifier prefix, @NonNull T shard,
+            @NonNull DOMDataTreeProducer producer) throws DOMDataTreeShardingConflictException;
 }