Skip to content

Commit 00a37f2

Browse files
committed
chore(gapic): combine client lifecycle comment into a single statement
1 parent 1095299 commit 00a37f2

File tree

1 file changed

+5
-13
lines changed
  • sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/comment

1 file changed

+5
-13
lines changed

sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/comment/CommentComposer.java

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -85,19 +85,11 @@ public class CommentComposer {
8585
Arrays.asList(
8686
CommentStatement.withComment(
8787
LineComment.withComment(
88-
"- The samples create a client that can be re-used for multiple requests")),
89-
CommentStatement.withComment(
90-
LineComment.withComment(
91-
" and are expected to be long-lived.")),
92-
CommentStatement.withComment(
93-
LineComment.withComment(
94-
" The clients should be resource managed properly and eventually closed.")),
95-
CommentStatement.withComment(
96-
LineComment.withComment(
97-
"- For more information on client lifecycle, see")),
98-
CommentStatement.withComment(
99-
LineComment.withComment(
100-
"https://docs.cloud.google.com/java/docs/client-lifecycle")));
88+
"- The samples create a client that can be re-used for multiple requests\n"
89+
+ " and are expected to be long-lived.\n"
90+
+ " The clients should be resource managed properly and eventually closed.\n"
91+
+ "- For more information on client lifecycle, see\n"
92+
+ "https://docs.cloud.google.com/java/docs/client-lifecycle")));
10193

10294
public static final List<Statement> AUTO_GENERATED_SAMPLE_COMMENT =
10395
ImmutableList.<Statement>builder()

0 commit comments

Comments
 (0)