File tree Expand file tree Collapse file tree
branches/pubsub-alpha/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 @@ -3,7 +3,7 @@ refs/heads/master: 689bbb466df4b2d5d2483d6edb8ac5c7c7f7c6fa
33refs/heads/travis: e21ee7b88a5edc3f3d8c71f90c3fc32abf7e8dd6
44refs/heads/gh-pages: 4e0561bb4504bf647db669a14417b2b2c87ba45d
55refs/heads/bigquery: 762fa5830e6c398c0396177e3e7fd243bd62cfc3
6- refs/heads/pubsub-alpha: 7e052dae27b857ed3301e6aed83e41bd01d40e48
6+ refs/heads/pubsub-alpha: f78da9d7f3a4f069d05208384d9a53dbd59689df
77refs/heads/resource-manager: ebf4adc5ee835cd2086c4ac5b4e78d01a5a005a7
88refs/heads/update-datastore: 482954f2c5055231e5b3122ea91d2ba00ce8187c
99refs/tags/0.0.9: 22f1839238f66c39e67ed4dfdcd273b1ae2e8444
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