aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-squid/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-squid/src/main')
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/measures/MeanAggregationFormula.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-squid/src/main/java/org/sonar/squid/measures/MeanAggregationFormula.java b/sonar-squid/src/main/java/org/sonar/squid/measures/MeanAggregationFormula.java
index a16643b028d..1cccabd96bb 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/measures/MeanAggregationFormula.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/measures/MeanAggregationFormula.java
@@ -29,7 +29,7 @@ public class MeanAggregationFormula implements AggregationFormula {
return 0;
}
SumAggregationFormula sumFormula = new SumAggregationFormula();
- return sumFormula.aggregate(metric, measurables) / (double) measurables.size();
+ return sumFormula.aggregate(metric, measurables) / measurables.size();
}
}