Skip to content

Commit

Permalink
chore: fix assorted warnings (#74)
Browse files Browse the repository at this point in the history
* fix assorted warnings

* chore: fix assorted warnings

* chore: reformat code

Co-authored-by: Stephanie Wang <stephaniewang526@users.noreply.github.com>
  • Loading branch information
elharo and stephaniewang526 committed Jan 3, 2020
1 parent e967e10 commit e8016c1
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ public Role apply(String constant) {
}
};

private static final StringEnumType<Role> type = new StringEnumType(Role.class, CONSTRUCTOR);
private static final StringEnumType<Role> type =
new StringEnumType<Role>(Role.class, CONSTRUCTOR);

/** Can read, query, copy or export tables in the dataset. */
public static final Role READER = type.createAndRegister("READER");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import com.google.api.services.bigquery.model.JobStatistics2;
import com.google.api.services.bigquery.model.JobStatistics3;
import com.google.api.services.bigquery.model.JobStatistics4;
import com.google.api.services.bigquery.model.ScriptStackFrame;
import com.google.cloud.StringEnumType;
import com.google.cloud.StringEnumValue;
import com.google.common.base.Function;
Expand Down Expand Up @@ -352,7 +351,7 @@ public StatementType apply(String constant) {
};

private static final StringEnumType<StatementType> type =
new StringEnumType(StatementType.class, CONSTRUCTOR);
new StringEnumType<StatementType>(StatementType.class, CONSTRUCTOR);

public static final StatementType SELECT = type.createAndRegister("SELECT");
public static final StatementType UPDATE = type.createAndRegister("UPDATE");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ public State apply(String constant) {
}
};

private static final StringEnumType<State> type = new StringEnumType(State.class, CONSTRUCTOR);
private static final StringEnumType<State> type =
new StringEnumType<State>(State.class, CONSTRUCTOR);

/** The BigQuery Job is waiting to be executed. */
public static final State PENDING = type.createAndRegister("PENDING");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public LegacySQLTypeName apply(String constant) {
};

private static final StringEnumType<LegacySQLTypeName> type =
new StringEnumType(LegacySQLTypeName.class, CONSTRUCTOR);
new StringEnumType<LegacySQLTypeName>(LegacySQLTypeName.class, CONSTRUCTOR);

/** Variable-length binary data. */
public static final LegacySQLTypeName BYTES =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ public Type apply(String constant) {
}
};

private static final StringEnumType<Type> type = new StringEnumType(Type.class, CONSTRUCTOR);
private static final StringEnumType<Type> type =
new StringEnumType<Type>(Type.class, CONSTRUCTOR);

/**
* A normal BigQuery table. Instances of {@code TableDefinition} for this type are implemented
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class ExtractTableToJsonIT {

private static void requireEnvVar(String varName) {
assertNotNull(
"Environment variable '%s' is required to perform these tests.".format(varName),
"Environment variable " + varName + " is required to perform these tests.",
System.getenv(varName));
}

Expand Down

0 comments on commit e8016c1

Please sign in to comment.