File tree Expand file tree Collapse file tree
branches/tswast-patch-1/gcloud-java-bigquery/src/main/java/com/google/gcloud/bigquery Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,5 +57,5 @@ refs/tags/v0.18.0: 9d193c4c4b9d1c6f21515dd8e50836b9194ec9bb
5757refs/tags/v0.19.0: e67b56e4d8dad5f9a7b38c9b2107c23c828f2ed5
5858refs/tags/v0.20.0: 839f7fb7156535146aa1cb2c5aadd8d375d854e8
5959refs/tags/v0.20.1: 370471f437f1f4f68a11e068df5cd6bf39edb1fa
60- refs/heads/tswast-patch-1: 7e052dae27b857ed3301e6aed83e41bd01d40e48
60+ refs/heads/tswast-patch-1: f78da9d7f3a4f069d05208384d9a53dbd59689df
6161refs/heads/pubsub-streaming-pull: 19262b752ee874eb2ca3b950eb2aef44d5a5267b
Original file line number Diff line number Diff line change 1616
1717package com .google .gcloud .bigquery ;
1818
19+ import static com .google .common .base .Preconditions .checkNotNull ;
20+
1921import com .google .common .base .MoreObjects ;
2022
2123import java .io .Serializable ;
@@ -85,7 +87,7 @@ public static FormatOptions datastoreBackup() {
8587 * Default options for the provided format.
8688 */
8789 public static FormatOptions of (String format ) {
88- if (format .equals (CSV )) {
90+ if (checkNotNull ( format ) .equals (CSV )) {
8991 return csv ();
9092 }
9193 return new FormatOptions (format );
You can’t perform that action at this time.
0 commit comments