Skip to content

Commit f642a4e

Browse files
committed
Add javadoc, make checkstyle happy
1 parent c2703c9 commit f642a4e

File tree

10 files changed

+21
-20
lines changed

10 files changed

+21
-20
lines changed

gcloud-java-bigquery/src/main/java/com/google/gcloud/bigquery/BigQueryError.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
import java.util.Objects;
99

1010
/**
11-
* Google Cloud BigQuery error.
11+
* Google Cloud BigQuery Job Error. Objects of this class represent errors occurred during the
12+
* execution of a BigQuery Job.
1213
*/
1314
public class BigQueryError implements Serializable {
1415

@@ -50,8 +51,8 @@ public ErrorProto apply(BigQueryError error) {
5051
/**
5152
* Returns short error code that summarizes the error.
5253
*
53-
* @see <a href="https://cloud.google.com/bigquery/troubleshooting-errors">
54-
* Troubleshooting Errors</a>
54+
* @see <a href="https://cloud.google.com/bigquery/troubleshooting-errors">Troubleshooting
55+
* Errors</a>
5556
*/
5657
public String reason() {
5758
return reason;

gcloud-java-bigquery/src/main/java/com/google/gcloud/bigquery/CopyJobInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public Builder toBuilder() {
168168
}
169169

170170
@Override
171-
protected MoreObjects.ToStringHelper toStringHelper() {
171+
MoreObjects.ToStringHelper toStringHelper() {
172172
return super.toStringHelper()
173173
.add("sourceTables", sourceTables)
174174
.add("destinationTable", destinationTable)

gcloud-java-bigquery/src/main/java/com/google/gcloud/bigquery/ExtractJobInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ public Builder toBuilder() {
200200
}
201201

202202
@Override
203-
public MoreObjects.ToStringHelper toStringHelper() {
203+
MoreObjects.ToStringHelper toStringHelper() {
204204
return super.toStringHelper()
205205
.add("sourceTable", sourceTable)
206206
.add("destinationUris", destinationUris)

gcloud-java-bigquery/src/main/java/com/google/gcloud/bigquery/JobInfo.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
* copies an existing table. Use {@link ExtractJobInfo} for a job that exports a table to Google
3030
* Cloud Storage. Use {@link LoadJobInfo} for a job that loads data from Google Cloud Storage into
3131
* a table. Use {@link QueryJobInfo} for a job that runs a query.
32+
*
33+
* @see <a href="https://cloud.google.com/bigquery/docs/reference/v2/jobs">Jobs</a>
3234
*/
3335
public abstract class JobInfo<S extends JobStatistics> implements Serializable {
3436

@@ -226,7 +228,7 @@ public String userEmail() {
226228
*/
227229
public abstract Builder toBuilder();
228230

229-
protected MoreObjects.ToStringHelper toStringHelper() {
231+
MoreObjects.ToStringHelper toStringHelper() {
230232
return MoreObjects.toStringHelper(this)
231233
.add("jobId", jobId)
232234
.add("status", status)

gcloud-java-bigquery/src/main/java/com/google/gcloud/bigquery/LoadJobInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ public Builder toBuilder() {
320320
}
321321

322322
@Override
323-
protected MoreObjects.ToStringHelper toStringHelper() {
323+
MoreObjects.ToStringHelper toStringHelper() {
324324
return super.toStringHelper()
325325
.add("destinationTable", destinationTable)
326326
.add("sourceUris", sourceUris)

gcloud-java-bigquery/src/main/java/com/google/gcloud/bigquery/QueryJobInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ public Builder toBuilder() {
415415
}
416416

417417
@Override
418-
protected MoreObjects.ToStringHelper toStringHelper() {
418+
MoreObjects.ToStringHelper toStringHelper() {
419419
return super.toStringHelper()
420420
.add("query", query)
421421
.add("destinationTable", destinationTable)

gcloud-java-bigquery/src/test/java/com/google/gcloud/bigquery/BigQueryErrorTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package com.google.gcloud.bigquery;
22

3-
import org.junit.Test;
4-
53
import static org.junit.Assert.assertEquals;
64

5+
import org.junit.Test;
6+
77
public class BigQueryErrorTest {
88

99
private static final String REASON = "reason";

gcloud-java-bigquery/src/test/java/com/google/gcloud/bigquery/ExtractJobInfoTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
import static org.junit.Assert.assertNull;
2222

2323
import com.google.common.collect.ImmutableList;
24-
import com.google.gcloud.bigquery.JobInfo.CreateDisposition;
25-
import com.google.gcloud.bigquery.JobInfo.WriteDisposition;
2624
import com.google.gcloud.bigquery.JobStatistics.ExtractStatistics;
2725

2826
import org.junit.Test;

gcloud-java-bigquery/src/test/java/com/google/gcloud/bigquery/JobStatusTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
public class JobStatusTest {
2828

2929
private static final JobStatus.State STATE = JobStatus.State.DONE;
30-
private static final BigQueryError ERROR = new BigQueryError("reason", "location", "message",
31-
"debugInfo");
30+
private static final BigQueryError ERROR =
31+
new BigQueryError("reason", "location", "message", "debugInfo");
3232
private static final List<BigQueryError> ALL_ERRORS = ImmutableList.of(
3333
new BigQueryError("reason1", "location1", "message1", "debugInfo1"),
3434
new BigQueryError("reason2", "location2", "message2", "debugInfo2"));

gcloud-java-bigquery/src/test/java/com/google/gcloud/bigquery/QueryJobInfoTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
import com.google.common.collect.ImmutableList;
2525
import com.google.common.collect.ImmutableMap;
2626
import com.google.gcloud.bigquery.JobInfo.CreateDisposition;
27+
import com.google.gcloud.bigquery.JobInfo.WriteDisposition;
2728
import com.google.gcloud.bigquery.JobStatistics.QueryStatistics;
2829
import com.google.gcloud.bigquery.QueryJobInfo.Priority;
29-
import com.google.gcloud.bigquery.JobInfo.WriteDisposition;
3030

3131
import org.junit.Test;
3232

@@ -74,10 +74,10 @@ public class QueryJobInfoTest {
7474
private static final CreateDisposition CREATE_DISPOSITION = CreateDisposition.CREATE_IF_NEEDED;
7575
private static final WriteDisposition WRITE_DISPOSITION = WriteDisposition.WRITE_APPEND;
7676
private static final Priority PRIORITY = Priority.BATCH;
77-
private static boolean ALLOW_LARGE_RESULTS = true;
78-
private static boolean USE_QUERY_CACHE = false;
79-
private static boolean FLATTEN_RESULTS = true;
80-
private static List<UserDefinedFunction> USER_DEFINED_FUNCTIONS = ImmutableList.of(
77+
private static final boolean ALLOW_LARGE_RESULTS = true;
78+
private static final boolean USE_QUERY_CACHE = false;
79+
private static final boolean FLATTEN_RESULTS = true;
80+
private static final List<UserDefinedFunction> USER_DEFINED_FUNCTIONS = ImmutableList.of(
8181
UserDefinedFunction.inline("Function"), UserDefinedFunction.fromUri("URI"));
8282
private static final JobId JOB_ID = JobId.of("job");
8383
private static final JobStatus JOB_STATUS = new JobStatus(JobStatus.State.DONE);
@@ -90,7 +90,7 @@ public class QueryJobInfoTest {
9090
.cacheHit(false)
9191
.billingTier(42)
9292
.build();
93-
private static QueryJobInfo QUERY_JOB = QueryJobInfo.builder(QUERY)
93+
private static final QueryJobInfo QUERY_JOB = QueryJobInfo.builder(QUERY)
9494
.etag(ETAG)
9595
.id(ID)
9696
.selfLink(SELF_LINK)

0 commit comments

Comments
 (0)