final class LocalHistorySuccessProxyV1 extends AbstractSuccessProxy<LocalHistoryIdentifier, LocalHistorySuccess> {
private static final long serialVersionUID = 1L;
- LocalHistorySuccessProxyV1() {
+ // checkstyle flags the public modifier as redundant however it is explicitly needed for Java serialization to
+ // be able to create instances via reflection.
+ @SuppressWarnings("checkstyle:RedundantModifier")
+ public LocalHistorySuccessProxyV1() {
// For Externalizable
}
}
@Override
- protected final LocalHistoryIdentifier readTarget(final DataInput in) throws IOException {
+ protected LocalHistoryIdentifier readTarget(final DataInput in) throws IOException {
return LocalHistoryIdentifier.readFrom(in);
}
@Override
- protected LocalHistorySuccess createSuccess(final LocalHistoryIdentifier target) {
- return new LocalHistorySuccess(target);
+ protected LocalHistorySuccess createSuccess(final LocalHistoryIdentifier target, final long sequence) {
+ return new LocalHistorySuccess(target, sequence);
}
}