Skip to content

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

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

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions