- public RemoveShardReplica(@Nonnull String shardName, @Nonnull MemberName memberName) {
- this.shardName = Preconditions.checkNotNull(shardName, "shardName should not be null");
- this.memberName = Preconditions.checkNotNull(memberName, "memberName should not be null");
+ public RemoveShardReplica(@NonNull String shardName, @NonNull MemberName memberName) {
+ this.shardName = requireNonNull(shardName, "shardName should not be null");
+ this.memberName = requireNonNull(memberName, "memberName should not be null");