Skip to content

Commit d5b3d01

Browse files
authored
chore: migrate to owlbot (#545)
1 parent 0861343 commit d5b3d01

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

recommender/generated/src/main/java/com/google/cloud/examples/recommender/v1beta1/SampleListRecommendations.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
// sample-metadata:
1818
// title: List Recommendations
1919
// description: List recommendations for a specified project, location, and recommender.
20-
// usage: gradle run -PmainClass=com.google.cloud.examples.recommender.v1beta1.SampleListRecommendations
20+
// usage: gradle run
21+
// -PmainClass=com.google.cloud.examples.recommender.v1beta1.SampleListRecommendations
2122

2223
package com.google.cloud.examples.recommender.v1beta1;
2324

recommender/snippets/src/main/java/com/example/recommender/ListRecommendations.java

+5-3
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,11 @@ public static void listRecommendations(String projectId, String location, String
7878
// Indicate the request was successful
7979
System.out.println("List recommendations successful");
8080
} catch (PermissionDeniedException e) {
81-
System.out.println("Permission denied for project '" + projectId
82-
+ "'. Ensure you have the appropriate permissions to list recommendations: \n" + e
83-
.toString());
81+
System.out.println(
82+
"Permission denied for project '"
83+
+ projectId
84+
+ "'. Ensure you have the appropriate permissions to list recommendations: \n"
85+
+ e.toString());
8486
} catch (InvalidArgumentException e) {
8587
System.out.println(
8688
("Invalid argument for projectId. Ensure you have 'GOOGLE_CLOUD_PROJECT' set: \n"

recommender/snippets/src/test/java/com/example/recommender/ListRecommendationsTest.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ public class ListRecommendationsTest {
3939
private static void requireEnvVar(String varName) {
4040
assertNotNull(
4141
System.getenv(varName),
42-
"Environment variable '%s' is required to perform these tests.".format(varName)
43-
);
42+
"Environment variable '%s' is required to perform these tests.".format(varName));
4443
}
4544

4645
@BeforeClass

0 commit comments

Comments
 (0)