Hiding this method is ugly, make sure users are aware of it.
JIRA: MDSAL-674
Change-Id: I9e733b46dea6251b43b3aa97d06e056fd7e8af16
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
* Invoked only once during registration of the listener if there was no data in the conceptual data tree
* for the supplied path, which was used to register this listener, and after this
* {@link #onDataTreeChanged(Collection)} would always be invoked for data changes.
- *
- * <p>
- * Default implementation does nothing and is appropriate for users who do not care about ascertaining
- * initial stat.
*/
- // FIXME: 8.0.0: this method should be non-default
- default void onInitialData() {
- //no-op
- }
+ void onInitialData();
}
}
static class TestDataTreeListener implements DOMDataTreeChangeListener {
-
private final List<Collection<DataTreeCandidate>> receivedChanges = new ArrayList<>();
private final CountDownLatch latch;
latch.countDown();
}
- public List<Collection<DataTreeCandidate>> getReceivedChanges() {
+ @Override
+ public void onInitialData() {
+ // noop
+ }
+
+ List<Collection<DataTreeCandidate>> getReceivedChanges() {
return receivedChanges;
}
}