* An abstract tree of registrations. Allows a read-only snapshot to be taken.
*
* @param <T> Type of registered object
+ *
+ * @deprecated Use {@link org.opendaylight.mdsal.dom.spi.AbstractRegistrationTree} instead.
*/
+@Deprecated
public abstract class AbstractRegistrationTree<T> {
private final ReadWriteLock rwLock = new ReentrantReadWriteLock(true);
private final RegistrationTreeNode<T> rootNode = new RegistrationTreeNode<>(null, null);
* @param node Tree node
* @param registration Registration instance
*/
- protected final void removeRegistration(@Nonnull final RegistrationTreeNode<T> node, @Nonnull final T registration) {
+ protected final void removeRegistration(@Nonnull final RegistrationTreeNode<T> node,
+ @Nonnull final T registration) {
// Take the write lock
rwLock.writeLock().lock();
try {