Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.3
    • Component/s: None
    • Labels:
      None

      Description

      Type

      Change token order.

      Approach

      The rule targets both JUnit and AssertJ, but the rule implementation does not need modification. The rule report issue when two literals are compared. In this case, there is no clear solution, and a quick fix should not be suggested.

      Before

      assertEquals(0, actual());
      assertThat(0).isEqualTo(actual());
      

      After

      assertEquals(actual(), 0);
      assertThat(actual()).isEqualTo(0);
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              michael.gumowski Michael Gumowski
              Reporter:
              quentin.jaquier Quentin Jaquier
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: