dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #20455
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 9337: Harmonization of hashcode and equals for org unit
------------------------------------------------------------
revno: 9337
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2012-12-17 11:16:35 +0100
message:
Harmonization of hashcode and equals for org unit
modified:
dhis-2/dhis-api/src/main/java/org/hisp/dhis/organisationunit/OrganisationUnit.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/organisationunit/OrganisationUnit.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/organisationunit/OrganisationUnit.java 2012-12-12 12:32:51 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/organisationunit/OrganisationUnit.java 2012-12-17 10:16:35 +0000
@@ -567,6 +567,12 @@
// -------------------------------------------------------------------------
@Override
+ public int hashCode()
+ {
+ return name.hashCode();
+ }
+
+ @Override
public boolean equals( Object o )
{
if ( this == o )
@@ -589,12 +595,6 @@
return name.equals( other.getName() );
}
- @Override
- public String toString()
- {
- return super.toString();
- }
-
// -------------------------------------------------------------------------
// Getters and setters
// -------------------------------------------------------------------------