* {@link Registration#close()} method on the returned object.
*
* <p>
- * You MUST explicitly unregister your listener when you no longer want to receive
- * notifications. This is especially true in OSGi environments, where failure to
- * do so during bundle shutdown can lead to stale listeners being still registered.
+ * You <b>MUST</b> explicitly unregister your listener when you no longer want to receive notifications. This is
+ * especially true in OSGi environments, where failure to do so during bundle shutdown can lead to stale listeners
+ * being still registered.
*
* @param treeId Data tree identifier of the subtree which should be watched for changes
* @param listener Listener instance which is being registered
@NonNull DataTreeChangeListener<T> listener);
/**
- * Registers a {@link DataTreeChangeListener} to receive
- * notifications when data changes under a given path in the conceptual data tree.
+ * Registers a {@link DataTreeChangeListener} to receive notifications when data changes under a given path in the
+ * conceptual data tree.
*
* <p>
- * You are able to register for notifications for any node or subtree
- * which can be represented using {@link DataTreeIdentifier}.
+ * You are able to register for notifications for any node or subtree which can be represented using
+ * {@link DataTreeIdentifier}.
*
* <p>
- * This method returns a {@link Registration} object. To
- * "unregister" your listener for changes call the {@link Registration#close()}
- * method on the returned object.
+ * This method returns a {@link Registration} object. To "unregister" your listener for changes call the
+ * {@link Registration#close()} method on the returned object.
*
* <p>
- * You MUST explicitly unregister your listener when you no longer want to receive
- * notifications. This is especially true in OSGi environments, where failure to
- * do so during bundle shutdown can lead to stale listeners being still registered.
- * @implSpec This method provides {@link DataListenerAdapter} as listener during
- * the registration of {@link DataTreeChangeListener}. This would allow users
- * to know the last state of data instead of getting details about what changed
- * in the entire tree.
- * @param treeId Data tree identifier of the subtree which should be watched for
- * changes.
+ * You <b>MUST</b> explicitly unregister your listener when you no longer want to receive notifications. This is
+ * especially true in OSGi environments, where failure to do so during bundle shutdown can lead to stale listeners
+ * being still registered.
+ *
+ * @implSpec This method provides {@link DataListenerAdapter} as listener during the registration of
+ * {@link DataTreeChangeListener}. This would allow users to know the last state of data instead of
+ * getting details about what changed in the entire tree.
+ *
+ * @param treeId Data tree identifier of the subtree which should be watched for changes.
* @param listener Listener instance which is being registered
- * @return Listener registration object, which may be used to unregister
- * your listener using {@link Registration#close()} to stop
- * delivery of change events.
+ * @return Listener registration object, which may be used to unregister your listener using
+ * {@link Registration#close()} to stop delivery of change events.
*/
default <T extends DataObject> @NonNull Registration registerDataListener(
final @NonNull DataTreeIdentifier<T> treeId, final @NonNull DataListener<T> listener) {
}
/**
- * Registers a {@link DataTreeChangeListener} to receive
- * notifications about the last data state when it changes under a given path in the conceptual data
- * tree.
+ * Registers a {@link DataTreeChangeListener} to receive notifications about the last data state when it changes
+ * under a given path in the conceptual data tree.
*
* <p>
- * You are able to register for notifications for any node or subtree
- * which can be represented using {@link DataTreeIdentifier}.
+ * You are able to register for notifications for any node or subtree which can be represented using
+ * {@link DataTreeIdentifier}.
*
* <p>
- * This method returns a {@link Registration} object. To
- * "unregister" your listener for changes call the {@link Registration#close()}
- * method on the returned object.
+ * This method returns a {@link Registration} object. To "unregister" your listener for changes call the
+ * {@link Registration#close()} method on the returned object.
*
* <p>
- * You MUST explicitly unregister your listener when you no longer want to receive
- * notifications. This is especially true in OSGi environments, where failure to
- * do so during bundle shutdown can lead to stale listeners being still registered.
+ * You <b>MUST</b> explicitly unregister your listener when you no longer want to receive notifications. This is
+ * especially true in OSGi environments, where failure to do so during bundle shutdown can lead to stale listeners
+ * being still registered.
*
- * @implSpec This method provides {@link DataChangeListenerAdapter} as listener during
- * the registration of {@link DataTreeChangeListener}, which provides a comparison
- * of before-value and after-value.
+ * @implSpec This method provides {@link DataChangeListenerAdapter} as listener during the registration of
+ * {@link DataTreeChangeListener}, which provides a comparison of before-value and after-value.
*
- * @param treeId Data tree identifier of the subtree which should be watched for
- * changes.
+ * @param treeId Data tree identifier of the subtree which should be watched for changes.
* @param listener Listener instance which is being registered
- * @return Listener registration object, which may be used to unregister
- * your listener using {@link Registration#close()} to stop
- * delivery of change events.
+ * @return Listener registration object, which may be used to unregister your listener using
+ * {@link Registration#close()} to stop delivery of change events.
*/
default <T extends DataObject> @NonNull Registration registerDataChangeListener(
final @NonNull DataTreeIdentifier<T> treeId, final @NonNull DataChangeListener<T> listener) {