Skip to content

[2.9.2] Regression splitting a record after an annotation #889

@boris-petrov

Description

@boris-petrov

Prettier-Java 2.9.2

Playground link

# Options (if any):
--print-width 200

Input:

@What
public record JoinData(SearchQuery query, boolean isNotJoin, boolean allowEmpty) {}

Output:

@What
public record JoinData(
	SearchQuery query,
	boolean isNotJoin,
	boolean allowEmpty
) {}

Expected behavior:

@What
public record JoinData(SearchQuery query, boolean isNotJoin, boolean allowEmpty) {}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions