Skip to content

Inconsistent formatting with type annotations on array vs varargs #435

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
shakuzen opened this issue Apr 23, 2025 · 0 comments
Open

Inconsistent formatting with type annotations on array vs varargs #435

shakuzen opened this issue Apr 23, 2025 · 0 comments

Comments

@shakuzen
Copy link

The formatting applied is different depending on whether a type annotation is applied to an array type or a varargs type. See the following examples:

  • With an Array type there is a space between the type annotation (@Nullable) and the type ([])
private static boolean isEmptyVarargs(@Nullable Object @Nullable [] args) {
  • With Varargs there is no space between the type annotation (@Nullable) and the type (...)
public KeyValues and(String @Nullable... keyValues) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant