Skip to content

AssertJ recipes should not change assertThat(null== a).isEqualTo(true) to assertThat(null).isSameAs(a) #868

@ChenyuWang98

Description

@ChenyuWang98

Compilation error

assertThat(null== a).isEqualTo(true) => assertThat(null).isSameAs(a);

Better

assertThat(null== a).isEqualTo(true) => assertThat(a).isNull()

Metadata

Metadata

Assignees

No one assigned

    Labels

    assertjbugSomething isn't working

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions