Skip to content

Some binary expression should be indented when they break #251

@clementdessoude

Description

@clementdessoude

Example:

public class DateTimeWrapper implements Serializable {

    public boolean equals(Object o) {
        return !(dateTimeWrapper.getId() == null || getId() == null) &&
            Objects.equals(getId(), dateTimeWrapper.getId());
    }

is printed as:

public class DateTimeWrapper implements Serializable {

    public boolean equals(Object o) {
        return !(dateTimeWrapper.getId() == null || getId() == null) &&
        Objects.equals(getId(), dateTimeWrapper.getId());
    }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions