Skip to content

JSpecify @Nullable and @NonNull are not inlined for fields with default visibility #447

Closed
@jonatan-ivanov

Description

@jonatan-ivanov

If a field has default visibility (no public/protected/private modifier), the formatter puts JSpecify @Nullable and @NonNull annotations into a separate line.

@Nullable Object one;

@NonNull Object two;

will be

@Nullable
Object one;

@NonNull
Object two;

See: #442

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions