Eclipse complains about unaccessed field, which we need for
serialization -- fix that by exposing the class to the entire package.
Also use local variable type inference to remove nullness warning.
Change-Id: Ib37d8e6b5d535c68eb578a67ac980e5de370c94f
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
}
LOG.trace("{}: starting append of {}", persistenceId, payload);
- final Indexed<ToPersistence> entry = writer.append(new ToPersistence(repr));
+ final var entry = writer.append(new ToPersistence(repr));
final int size = entry.size();
LOG.trace("{}: finished append of {} with {} bytes at {}", persistenceId, payload, size, entry.index());
recordMessageSize(size);
return future.value().get().get();
}
- private static final class LargePayload implements Serializable {
+ static final class LargePayload implements Serializable {
private static final long serialVersionUID = 1L;
final byte[] bytes = new byte[MESSAGE_SIZE / 2];