Skip to content

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

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 ([])
privatestaticbooleanisEmptyVarargs(@NullableObject@Nullable [] args) {
  • With Varargs there is no space between the type annotation (@Nullable) and the type (...)
publicKeyValuesand(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