dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #39748
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 20153: remove unused parameter to isDisaggregation
------------------------------------------------------------
revno: 20153
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2015-09-15 13:55:31 +0700
message:
remove unused parameter to isDisaggregation
modified:
dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/data/DefaultQueryPlanner.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-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/data/DefaultQueryPlanner.java'
--- dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/data/DefaultQueryPlanner.java 2015-09-15 05:08:23 +0000
+++ dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/data/DefaultQueryPlanner.java 2015-09-15 06:55:31 +0000
@@ -800,9 +800,9 @@
private AggregationType getAggregationType( ValueType valueType, String aggregationOperator,
PeriodType aggregationPeriodType, PeriodType dataPeriodType )
{
- AggregationType aggregationType = null;
+ AggregationType aggregationType;
- boolean disaggregation = isDisaggregation( aggregationOperator, aggregationPeriodType, dataPeriodType );
+ boolean disaggregation = isDisaggregation( aggregationPeriodType, dataPeriodType );
boolean number = valueType.isNumeric();
if ( AVERAGE_AGG_OPERATORS.contains( aggregationOperator ) && ValueType.BOOLEAN == valueType )
@@ -836,7 +836,7 @@
/**
* Indicates whether disaggregation is allowed for the given input.
*/
- private boolean isDisaggregation( String aggregationOperator, PeriodType aggregationPeriodType, PeriodType dataPeriodType )
+ private boolean isDisaggregation( PeriodType aggregationPeriodType, PeriodType dataPeriodType )
{
return dataPeriodType != null && aggregationPeriodType != null && aggregationPeriodType.getFrequencyOrder() < dataPeriodType.getFrequencyOrder();
}