- this.delegate = Preconditions.checkNotNull(delegateTx, "Delegate must not be null");
- this.codec = Preconditions.checkNotNull(codec, "Codec must not be null");
+ this.delegate = requireNonNull(delegateTx, "Delegate must not be null");
+ this.codec = requireNonNull(codec, "Codec must not be null");