- protected AbstractSchemaSourceCache(final SchemaSourceRegistry consumer, final Class<T> representation, final Costs cost) {
- this.consumer = Preconditions.checkNotNull(consumer);
- this.representation = Preconditions.checkNotNull(representation);
- this.cost = Preconditions.checkNotNull(cost);
+ protected AbstractSchemaSourceCache(final SchemaSourceRegistry consumer, final Class<T> representation,
+ final Costs cost) {
+ this.consumer = requireNonNull(consumer);
+ this.representation = requireNonNull(representation);
+ this.cost = requireNonNull(cost);