Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-15886

Using Objects.equals() in ejb3 DeploymentModuleIdentifier.equals()

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Minor
    • 27.0.0.Alpha1, 27.0.0.Final
    • None
    • EJB
    • None

    Description

      In ejb3 DeploymentModuleIdentifier.equals(...) method, the following line can be simplified with Objects.equals(...) method:

      
              if (distinctName != null ? !distinctName.equals(that.distinctName) : that.distinctName != null) return false;
       

      -->

              if (!Objects.equals(distinctName, that.distinctName)) return false;
      

      Attachments

        Activity

          People

            rchakrab Ranabir Chakraborty
            rchakrab Ranabir Chakraborty
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: