Skip to content

Formatter produces inconsistent result with nullable annotations in certain positions #435

Closed
@shakuzen

Description

@shakuzen

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) {

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions