There is no point in extending this class, make it final.
Change-Id: I6f73c5be57e6fb58e7c74b5681907ae0f492437d
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
return new Proxy(this);
}
return new Proxy(this);
}
- public static class ShardSnapshot implements Serializable {
+ public static final class ShardSnapshot implements Serializable {
private static final long serialVersionUID = 1L;
private static final class Proxy implements Externalizable {
private static final long serialVersionUID = 1L;
private static final class Proxy implements Externalizable {
- private final String name;
- private final Snapshot snapshot;
+ private final @NonNull String name;
+ private final @NonNull Snapshot snapshot;
public ShardSnapshot(@NonNull String name, @NonNull Snapshot snapshot) {
this.name = requireNonNull(name);
public ShardSnapshot(@NonNull String name, @NonNull Snapshot snapshot) {
this.name = requireNonNull(name);