Title: comment after class that has implements cause wrong indentation · Issue #1126 · google/google-java-format · GitHub
Open Graph Title: comment after class that has implements cause wrong indentation · Issue #1126 · google/google-java-format
X Title: comment after class that has implements cause wrong indentation · Issue #1126 · google/google-java-format
Description: Indention of implements becomes 0, but should be +4 (as it is line wrap) from 0, so 4. $ cat Test.java /** Tetsing. */ public class Test // comment implements Runnable, Cloneable { } $ java -jar google-java-format-1.23.0-all-deps.jar Tes...
Open Graph Description: Indention of implements becomes 0, but should be +4 (as it is line wrap) from 0, so 4. $ cat Test.java /** Tetsing. */ public class Test // comment implements Runnable, Cloneable { } $ java -jar go...
X Description: Indention of implements becomes 0, but should be +4 (as it is line wrap) from 0, so 4. $ cat Test.java /** Tetsing. */ public class Test // comment implements Runnable, Cloneable { } $ java -jar go...
Opengraph URL: https://github.com/google/google-java-format/issues/1126
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"comment after class that has implements cause wrong indentation","articleBody":"Indention of `implements` becomes 0, but should be +4 (as it is line wrap) from 0, so 4.\r\n```\r\n$ cat Test.java \r\n/** Tetsing. */\r\npublic class Test // comment\r\n implements Runnable, Cloneable {\r\n\r\n}\r\n\r\n$ java -jar google-java-format-1.23.0-all-deps.jar Test.java > TestUpdated.java\r\n\r\n$ diff -u Test.java TestUpdated.java \r\n--- Test.java\t2024-07-31 06:29:22.086232824 -0700\r\n+++ TestUpdated.java\t2024-07-31 06:33:39.001224613 -0700\r\n@@ -1,5 +1,3 @@\r\n /** Tetsing. */\r\n public class Test // comment\r\n- implements Runnable, Cloneable {\r\n-\r\n-}\r\n+implements Runnable, Cloneable {}\r\n\r\n$ cat TestUpdated.java \r\n/** Tetsing. */\r\npublic class Test // comment\r\nimplements Runnable, Cloneable {}\r\n\r\n```\r\n\r\nWorkaround is to remove trailing comment\r\nbut better to handle/format it eventually in proper way.","author":{"url":"https://github.com/romani","@type":"Person","name":"romani"},"datePublished":"2024-07-31T13:35:20Z","url":"https://github.com/google/google-java-format/issues/1126"}
| 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 | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a73d8feb-ee54-07bb-47f6-ee497b20f54f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9DBE:15B60E:19E4BA:23616D:6AFBACF5 |
| html-safe-nonce | 9f32ce6d6983dbb37d86b2263c577bc48017ee021b04ddbdab136008b19e782c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5REJFOjE1QjYwRToxOUU0QkE6MjM2MTZEOjZBRkJBQ0Y1IiwidmlzaXRvcl9pZCI6IjcyMzIxMDAzODg0NzQ0MzI3NTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 56dab7618816b398aa56a694b7a7ffbfebc401634ff75378b26cb0ece6ee69aa |
| hovercard-subject-tag | issue:2440081623 |
| 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/_view_fragments/issues/show/google/google-java-format/1126/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f8c5df270cdf6adca90ffb4f134eb5efd2d914c7b3dacb33dcaf379a30b2adf9/google/google-java-format/issues/1126 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f8c5df270cdf6adca90ffb4f134eb5efd2d914c7b3dacb33dcaf379a30b2adf9/google/google-java-format/issues/1126 |
| og:image:alt | Indention of implements becomes 0, but should be +4 (as it is line wrap) from 0, so 4. $ cat Test.java /** Tetsing. */ public class Test // comment implements Runnable, Cloneable { } $ java -jar go... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | romani |
| hostname | github.com |
| expected-hostname | github.com |
| None | e25fbd830d3e6ad0e8935c105cf4fdc70c593dffcd27bb45b790ae4fece5ea55 |
| turbo-cache-control | no-preview |
| 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