Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-324

ToDoItem.compare compares against itself.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • archetype-wrj-1.0.2
    • archetype-wrj-1.0.3
    • None
    • None

    Description

      final statements in the compare method compares with itself:

      if (getDueBy() == null && other.getDueBy() == null || getDueBy().equals(this.getDueBy()))

      { return getDescription().compareTo(other.getDescription()); }
      return getDueBy().compareTo(getDueBy());

      Should be:

      if (getDueBy() == null && other.getDueBy() == null || getDueBy().equals(other.getDueBy())) { return getDescription().compareTo(other.getDescription()); }

      return getDueBy().compareTo(other.getDueBy());

      Attachments

        Activity

          People

            danhaywood Daniel Keir Haywood
            misl Minto van der Sluis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: