← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 16984: BaseAnalyticalObject, performance improvement

 

------------------------------------------------------------
revno: 16984
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2014-10-07 16:34:54 +0200
message:
  BaseAnalyticalObject, performance improvement
modified:
  dhis-2/dhis-api/src/main/java/org/hisp/dhis/common/BaseAnalyticalObject.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/common/BaseAnalyticalObject.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/common/BaseAnalyticalObject.java	2014-08-15 07:40:20 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/common/BaseAnalyticalObject.java	2014-10-07 14:34:54 +0000
@@ -728,7 +728,7 @@
 
         for ( NameableObject item : dimensions )
         {
-            if ( item.getClass().isAssignableFrom( DataElementOperand.class ) )
+            if ( item.getClass().equals( DataElementOperand.class ) )
             {
                 ids.add( ((DataElementOperand) item).getDataElement().getUid() );
                 ids.add( ((DataElementOperand) item).getCategoryOptionCombo().getUid() );