- public LocalPrimaryShardFound(@Nonnull String primaryPath, @Nonnull DataTree localShardDataTree) {
- this.primaryPath = Preconditions.checkNotNull(primaryPath);
- this.localShardDataTree = Preconditions.checkNotNull(localShardDataTree);
+ public LocalPrimaryShardFound(@NonNull String primaryPath, @NonNull ReadOnlyDataTree localShardDataTree) {
+ this.primaryPath = requireNonNull(primaryPath);
+ this.localShardDataTree = requireNonNull(localShardDataTree);