Skip to content

Commit 64aa5bb

Browse files
ashutoshcppongad
authored andcommitted
simplify string concat (#2773)
1 parent 599d0a7 commit 64aa5bb

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/spi/v2/HttpBigQueryRpc.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -398,11 +398,8 @@ public GetQueryResultsResponse getQueryResults(String projectId, String jobId,
398398
public String open(JobConfiguration configuration) {
399399
try {
400400
Job loadJob = new Job().setConfiguration(configuration);
401-
StringBuilder builder = new StringBuilder()
402-
.append(BASE_RESUMABLE_URI)
403-
.append(options.getProjectId())
404-
.append("/jobs");
405-
GenericUrl url = new GenericUrl(builder.toString());
401+
String builder = BASE_RESUMABLE_URI + options.getProjectId() + "/jobs";
402+
GenericUrl url = new GenericUrl(builder);
406403
url.set("uploadType", "resumable");
407404
JsonFactory jsonFactory = bigquery.getJsonFactory();
408405
HttpRequestFactory requestFactory = bigquery.getRequestFactory();

0 commit comments

Comments
 (0)