- public ModuleShardConfiguration(@Nonnull URI namespace, @Nonnull String moduleName, @Nonnull String shardName,
- @Nullable String shardStrategyName, @Nonnull Collection<String> shardMemberNames) {
- this.namespace = Preconditions.checkNotNull(namespace, "nameSpace should not be null");
- this.moduleName = Preconditions.checkNotNull(moduleName, "moduleName should not be null");
- this.shardName = Preconditions.checkNotNull(shardName, "shardName should not be null");
+ public ModuleShardConfiguration(final @NonNull XMLNamespace namespace, final @NonNull String moduleName,
+ final @NonNull String shardName, final @Nullable String shardStrategyName,
+ final @NonNull Collection<MemberName> shardMemberNames) {
+ this.namespace = requireNonNull(namespace, "nameSpace should not be null");
+ this.moduleName = requireNonNull(moduleName, "moduleName should not be null");
+ this.shardName = requireNonNull(shardName, "shardName should not be null");