Title: No new line break for some at-sign@ in Javadoc comment · Issue #1249 · google/google-java-format · GitHub
Open Graph Title: No new line break for some at-sign@ in Javadoc comment · Issue #1249 · google/google-java-format
X Title: No new line break for some at-sign@ in Javadoc comment · Issue #1249 · google/google-java-format
Description: Reformats Java source code to comply with Google Java Style. - No new line break for some at-sign@ in Javadoc comment · Issue #1249 · google/google-java-format
Open Graph Description: Reformats Java source code to comply with Google Java Style. - No new line break for some at-sign@ in Javadoc comment · Issue #1249 · google/google-java-format
X Description: Reformats Java source code to comply with Google Java Style. - No new line break for some at-sign@ in Javadoc comment · Issue #1249 · google/google-java-format
Opengraph URL: https://github.com/google/google-java-format
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"No new line break for some at-sign@ in Javadoc comment","articleBody":"We have a string as:\n\n```java\n// AUTO-GENERATED DOCUMENTATION AND METHOD.\n/**\n* \u003cp> Sample code:\n* \u003cpre>{@code\n* // This snippet has been automatically generated and should be regarded as a code template only.\n* try (EchoServiceClient echoServiceClient =\n* EchoServiceClient.create()) {\n* EchoResponse response =\n* echoServiceClient.chat();\n* }\n* }\u003c/pre>\n* @param request The request object containing all of the parameters for the API call.\n* @throws com.google.api.gax.rpc.ApiException if the remote call fails\n* @InternalApi This method is internal used only. Please do not use directly.\n*/\n```\n\nAfter running java-format on the above string, the Javadoc comment gets reformatted as:\n\n```java\n// AUTO-GENERATED DOCUMENTATION AND METHOD.\n /**\n * Sample code:\n *\n * \u003cpre>{@code\n * // This snippet has been automatically generated and should be regarded as a code template only.\n * try (EchoServiceClient echoServiceClient =\n * EchoServiceClient.create()) {\n * EchoResponse response =\n * echoServiceClient.chat();\n * }\n * }\u003c/pre>\n *\n * @param request The request object containing all of the parameters for the API call.\n * @throws com.google.api.gax.rpc.ApiException if the remote call fails @InternalApi This method\n * is internal used only. Please do not use directly.\n */\n```\n\nNotice the line break before `@InternalApi ` was removed and a line break was added after `@InternalApi This method`. This makes the method comments hard to read. \nCould you please help investigate?\nThank you!","author":{"url":"https://github.com/cindy-peng","@type":"Person","name":"cindy-peng"},"datePublished":"2025-04-16T04:23:01Z","url":"https://github.com/google/google-java-format/issues/1249"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:3797c068-e781-1ec4-ae92-c9b903a22b8d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BBDA:10AA8F:1BF8E2:2651DE:6AFBADA3 |
| html-safe-nonce | ded8b4e7f4741652488cb36f08cd1f47bc9583b83c22ac8b4de9f5cfa9878206 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQkRBOjEwQUE4RjoxQkY4RTI6MjY1MURFOjZBRkJBREEzIiwidmlzaXRvcl9pZCI6Ijc0NTkxMTg2NTg3OTUzMTg2OTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0ead8483c74de71ec570cc3e6498e4696f00a83a3675d84bc3e8ec0a0ca95c84 |
| hovercard-subject-tag | repository:35448780 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/google/google-java-format/issues/1249 |
| twitter:image | https://opengraph.githubassets.com/bcb53307ad8302c33f4fe3ed7f6e89e744f8e2c9825f4b49d610649c02dc835f/google/google-java-format |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bcb53307ad8302c33f4fe3ed7f6e89e744f8e2c9825f4b49d610649c02dc835f/google/google-java-format |
| og:image:alt | Reformats Java source code to comply with Google Java Style. - No new line break for some at-sign@ in Javadoc comment · Issue #1249 · google/google-java-format |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | e25fbd830d3e6ad0e8935c105cf4fdc70c593dffcd27bb45b790ae4fece5ea55 |
| turbo-cache-control | no-cache |
| go-import | github.com/google/google-java-format git https://github.com/google/google-java-format.git |
| octolytics-dimension-user_id | 1342004 |
| octolytics-dimension-user_login | |
| octolytics-dimension-repository_id | 35448780 |
| octolytics-dimension-repository_nwo | google/google-java-format |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 35448780 |
| octolytics-dimension-repository_network_root_nwo | google/google-java-format |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 08c8f17f9d27054a108b8b6254e405de0151f660 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width