aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2014-10-15 12:44:06 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2014-10-15 12:44:06 +0200
commit92f899b7f11ab6127f7333289a06e31f45eaa8e0 (patch)
tree39d53d1f1bcef6b4705a8e757ee37aa81a7f3c5d /sonar-batch
parent25e47d9f694fc9805e1ac20930abdd1b514d3cac (diff)
downloadsonarqube-92f899b7f11ab6127f7333289a06e31f45eaa8e0.tar.gz
sonarqube-92f899b7f11ab6127f7333289a06e31f45eaa8e0.zip
Fix quality flaws
Diffstat (limited to 'sonar-batch')
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/debt/SqaleRatingDecorator.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/debt/SqaleRatingDecorator.java b/sonar-batch/src/main/java/org/sonar/batch/debt/SqaleRatingDecorator.java
index e1b767a9b63..46dc7bbea3d 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/debt/SqaleRatingDecorator.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/debt/SqaleRatingDecorator.java
@@ -141,7 +141,7 @@ public final class SqaleRatingDecorator implements Decorator {
}
protected double computeDensity(double debt, double developmentCost) {
- if (developmentCost != 0f) {
+ if (Double.doubleToRawLongBits(developmentCost) != 0L) {
return debt / developmentCost;
}
return 0f;