diff --git a/changelog/@unreleased/pr-4795.v2.yml b/changelog/@unreleased/pr-4795.v2.yml new file mode 100644 index 00000000000..11218f6b272 --- /dev/null +++ b/changelog/@unreleased/pr-4795.v2.yml @@ -0,0 +1,6 @@ +type: improvement +improvement: + description: |- + Fix deserialization issue. + links: + - https://github.com/palantir/atlasdb/pull/4795 diff --git a/lock-api-objects/src/main/java/com/palantir/lock/watch/NoOpLockWatchEventCache.java b/lock-api-objects/src/main/java/com/palantir/lock/watch/NoOpLockWatchEventCache.java index 67b474ab3ca..01c0d93b448 100644 --- a/lock-api-objects/src/main/java/com/palantir/lock/watch/NoOpLockWatchEventCache.java +++ b/lock-api-objects/src/main/java/com/palantir/lock/watch/NoOpLockWatchEventCache.java @@ -26,7 +26,6 @@ public class NoOpLockWatchEventCache implements LockWatchEventCache { public static final LockWatchEventCache INSTANCE = new NoOpLockWatchEventCache(); private static final IdentifiedVersion FAKE = ImmutableIdentifiedVersion.of(UUID.randomUUID(), 0L); - private static final Optional FAKE_OPTIONAL_VERSION = Optional.of(FAKE); private static final TransactionsLockWatchEvents NONE = TransactionsLockWatchEvents.failure( LockWatchStateUpdate.snapshot(UUID.randomUUID(), -1L, ImmutableSet.of(), ImmutableSet.of())); @@ -36,7 +35,7 @@ private NoOpLockWatchEventCache() { @Override public Optional lastKnownVersion() { - return FAKE_OPTIONAL_VERSION; + return Optional.empty(); } @Override