You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cleanup pass: drop empty annotation parentheses #217
google-java-format#1504 (merged 2026-10-29, copybara export) extends the --cleanup AST pass introduced in google-java-format#1492 so that @Anno() becomes @Anno. Comments inside the parentheses are kept, and a space is inserted when the annotation is directly followed by an identifier.
Why it matters: it is one more non-whitespace rewrite that users of google-java-format will get by default, and it belongs with our existing cleanup tickets (brace insertion, redundant semicolons, unified cleanup pipeline). We have no cleanup pass beyond RemoveUnusedImports, so this is only worth doing if we adopt that pass at all.
Before (upstream behaviour before the change; I believe ours does not touch annotation parentheses but did not run it):
classT {
`@Anno`() intx;
`@Anno`()inty;
}
After (with the change, from the upstream description):
Activity