XMLWordPrintable

    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

      Replacement of tokens

      Approach

      We already know the expressions and the corresponding text-spans.
      The idea is to replace the whole a==b by a call to Objects.equals(a,b) which also handle null-cases.
      Note that if java.util.Objects is not yet part of the imports, we might need to insert it, or use the fully qualified name.

      Before

      MyString == MyOtherString
      

      After

      Objects.equals(MyString, MyOtherString)
      

      or

      java.util.Objects.equals(MyString, MyOtherString)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dorian.burihabwa Dorian Burihabwa
              Reporter:
              michael.gumowski Michael Gumowski
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: