diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-10-15 13:30:31 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-10-15 13:30:31 +0200 |
commit | 4fde336a3e06fa28f65f19fd078cc377828c4524 (patch) | |
tree | 5ed72a6f7e761578cf8c593fb853e91a3b96018d /sonar-batch | |
parent | aef554d9b0f452eabf4870cb759bdd5d308c3670 (diff) | |
download | sonarqube-4fde336a3e06fa28f65f19fd078cc377828c4524.tar.gz sonarqube-4fde336a3e06fa28f65f19fd078cc377828c4524.zip |
Fix quality flaw
Diffstat (limited to 'sonar-batch')
-rw-r--r-- | sonar-batch/src/main/java/org/sonar/batch/debt/SqaleRatingDecorator.java | 2 |
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 2d18f1f54c0..426ba550e72 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 != 0d) { + if (Double.doubleToRawLongBits(developmentCost) != 0L) { return debt / developmentCost; } return 0d; |