@Override
public String toString() {
- StringBuilder builder = new StringBuilder();
- builder.append("InstallSnapshotReply [term=").append(getTerm()).append(", followerId=").append(followerId)
- .append(", chunkIndex=").append(chunkIndex).append(", success=").append(success).append("]");
- return builder.toString();
+ return "InstallSnapshotReply [term=" + getTerm()
+ + ", followerId=" + followerId
+ + ", chunkIndex=" + chunkIndex
+ + ", success=" + success + "]";
}
private Object writeReplace() {
private InstallSnapshotReply installSnapshotReply;
+ // checkstyle flags the public modifier as redundant which really doesn't make sense since it clearly isn't
+ // redundant. It is explicitly needed for Java serialization to be able to create instances via reflection.
+ @SuppressWarnings("checkstyle:RedundantModifier")
public Proxy() {
}