When a node appears, it is an event equivalent to a WRITE,
not SUBTREE_MODIFIED, otherwise we are logically crossing
a non-existent node.
Change-Id: I0876a18ec4af799db30c384fe4a7e38b9b2833c7
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
@Override
public DataObjectModification.ModificationType getModificationType() {
switch(domData.getModificationType()) {
+ case APPEARED:
case WRITE:
return DataObjectModification.ModificationType.WRITE;
- case APPEARED:
case SUBTREE_MODIFIED:
return DataObjectModification.ModificationType.SUBTREE_MODIFIED;
case DISAPPEARED: