Uploaded image for project: 'Isis'
  1. Isis
  2. ISIS-324

ToDoItem.compare compares against itself.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: archetype-wrj-1.0.2
    • Fix Version/s: archetype-wrj-1.0.3
    • Component/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: