dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #20444
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 9329: minor fix
------------------------------------------------------------
revno: 9329
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Sat 2012-12-15 20:28:44 +0300
message:
minor fix
modified:
dhis-2/dhis-api/src/main/java/org/hisp/dhis/organisationunit/comparator/OrganisationUnitByLevelComparator.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/comparator/OrganisationUnitByLevelComparator.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/organisationunit/comparator/OrganisationUnitByLevelComparator.java 2012-12-09 14:31:03 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/organisationunit/comparator/OrganisationUnitByLevelComparator.java 2012-12-15 17:28:44 +0000
@@ -40,6 +40,6 @@
@Override
public int compare( OrganisationUnit o1, OrganisationUnit o2 )
{
- return Integer.compare( o1.getOrganisationUnitLevel(), o2.getOrganisationUnitLevel() );
+ return new Integer( o1.getOrganisationUnitLevel() ).compareTo( o2.getOrganisationUnitLevel() );
}
}