Minto van der Sluis created ISIS-324:
----------------------------------------
Summary: ToDoItem.compare compares against itself.
Key: ISIS-324
URL: https://issues.apache.org/jira/browse/ISIS-324
Project: Isis
Issue Type: Bug
Components: Archetypes
Affects Versions: archetype-wrj-1.0.2
Reporter: Minto van der Sluis
Assignee: Dan Haywood
Priority: Minor
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());
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira