Uploaded image for project: 'REEF (Retired)'
  1. REEF (Retired)
  2. REEF-779

Implement both null and type checking in equals functions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.12
    • 0.13
    • None
    • None

    Description

      `equals` functions should handle `null` and other type objects. Most REEF classes already implements that function properly like the following.

      public boolean equals(final Object o) {
          if (this == o) {
            return true;
          }
          if (o == null || getClass() != o.getClass()) {
            return false;
          }
          ...
      }
      

      This issue addresses the following classes needed to be changed.

      • reef-io : StringIdentifier
      • reef-tang: TangImpl.java, AbstractNode, ConstructorArgImpl, ConstructorDefImpl.java
      • reef-wake: SocketRemoteIdentifier, Tuple2, TestRemoteIdentifier

      Attachments

        Issue Links

          Activity

            People

              dongjoon Dongjoon Hyun
              dongjoon Dongjoon Hyun
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: