import static com.google.common.base.Verify.verifyNotNull;
import static java.util.Objects.requireNonNull;
import static com.google.common.base.Verify.verifyNotNull;
import static java.util.Objects.requireNonNull;
abstract Set<Absolute> getSupportedNotifications();
private Notification<?> deserialize(final DOMNotification notification) {
abstract Set<Absolute> getSupportedNotifications();
private Notification<?> deserialize(final DOMNotification notification) {
// TODO: This is a routed-back notification, for which we may end up losing event time here, but that is
// okay, for now at least.
// TODO: This is a routed-back notification, for which we may end up losing event time here, but that is
// okay, for now at least.
- final CurrentAdapterSerializer serializer = adapterContext.currentSerializer();
- return notification instanceof DOMEvent
+ final var serializer = adapterContext.currentSerializer();
+ final var result = notification instanceof DOMEvent
? serializer.fromNormalizedNodeNotification(notification.getType(), notification.getBody(),
((DOMEvent) notification).getEventInstant())
: serializer.fromNormalizedNodeNotification(notification.getType(), notification.getBody());
? serializer.fromNormalizedNodeNotification(notification.getType(), notification.getBody(),
((DOMEvent) notification).getEventInstant())
: serializer.fromNormalizedNodeNotification(notification.getType(), notification.getBody());