Skip to content

Commit

Permalink
Remove excessive arg verification and leave it only in the StreamWriter
Browse files Browse the repository at this point in the history
  • Loading branch information
yifatgortler committed Jul 20, 2023
1 parent e15f083 commit 24dcb0d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import com.google.api.gax.core.CredentialsProvider;
import com.google.api.gax.core.ExecutorProvider;
import com.google.api.gax.rpc.TransportChannelProvider;
import com.google.common.base.Preconditions;
import com.google.protobuf.Descriptors;
import java.io.IOException;
import java.util.Map;
Expand Down Expand Up @@ -344,11 +343,6 @@ public Builder setLocation(String location) {
* @return Builder
*/
public Builder setCompressorName(String compressorName) {
Preconditions.checkNotNull(compressorName);
Preconditions.checkArgument(
compressorName.equals("gzip"),
"Compression of type \"%s\" isn't supported, only \"gzip\" compression is supported.",
compressorName);
this.schemaAwareStreamWriterBuilder.setCompressorName(compressorName);
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -623,11 +623,6 @@ public Builder<T> setLocation(String location) {
* @return Builder
*/
public Builder<T> setCompressorName(String compressorName) {
Preconditions.checkNotNull(compressorName);
Preconditions.checkArgument(
compressorName.equals("gzip"),
"Compression of type \"%s\" isn't supported, only gzip compression is supported",
compressorName);
this.compressorName = compressorName;
return this;
}
Expand Down

0 comments on commit 24dcb0d

Please sign in to comment.