Skip to content

Commit

Permalink
chore: migrate to owlbot (#516)
Browse files Browse the repository at this point in the history
  • Loading branch information
Neenu1995 authored Sep 5, 2021
1 parent 70c27e8 commit cb1e312
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static void main(String[] args) throws IOException {
String projectId = "my-project-id";
String locationId = "us-central1";
String queueId = "my-queue";
String serviceAccountEmail =
String serviceAccountEmail =
"java-docs-samples-testing@java-docs-samples-testing.iam.gserviceaccount.com";
createTask(projectId, locationId, queueId, serviceAccountEmail);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ public static void main(String[] args) throws IOException {
}

// List queues using the Cloud Tasks client.
public static void listQueues(String projectId, String locationId)
throws IOException {
public static void listQueues(String projectId, String locationId) throws IOException {

// Instantiates a client.
try (CloudTasksClient client = CloudTasksClient.create()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void setUp() {
bout = new ByteArrayOutputStream();
out = new PrintStream(bout);
System.setOut(out);

try (CloudTasksClient client = CloudTasksClient.create()) {
String parent = LocationName.of(PROJECT_ID, LOCATION_ID).toString();
String queuePath = QueueName.of(PROJECT_ID, LOCATION_ID, QUEUE_ID).toString();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import static com.google.common.truth.Truth.assertThat;
import static org.junit.Assert.assertNotNull;

import com.google.api.gax.rpc.NotFoundException;
import com.google.cloud.tasks.v2.CloudTasksClient;
import com.google.cloud.tasks.v2.LocationName;
import com.google.cloud.tasks.v2.Queue;
Expand Down Expand Up @@ -61,7 +60,7 @@ public void setUp() {
bout = new ByteArrayOutputStream();
out = new PrintStream(bout);
System.setOut(out);

try (CloudTasksClient client = CloudTasksClient.create()) {
String parent = LocationName.of(PROJECT_ID, LOCATION_ID).toString();
String queuePath = QueueName.of(PROJECT_ID, LOCATION_ID, QUEUE_ID).toString();
Expand Down

0 comments on commit cb1e312

Please sign in to comment.