Skip to content

Indent after comment line #308

@benjavalero

Description

@benjavalero

After a comment line, if the block below is formatted, it gets unnecessarily indented.

Input:

// 1 result in DB by no type
Mockito.when(replacementRepository.findRandomArticleIdsToReview(Mockito.any(PageRequest.class)))
        .thenReturn(new ArrayList<>(Collections.singletonList(randomId2)));

Output (0.4.0):

// 1 result in DB by no type
    Mockito.when(
        replacementRepository.findRandomArticleIdsToReview(Mockito.any(PageRequest.class))
    ).thenReturn(new ArrayList<>(Collections.singletonList(randomId2)));

Expected output:

// 1 result in DB by no type
Mockito.when(
    replacementRepository.findRandomArticleIdsToReview(Mockito.any(PageRequest.class))
).thenReturn(new ArrayList<>(Collections.singletonList(randomId2)));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions