aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine
diff options
context:
space:
mode:
authorZipeng WU <zipeng.wu@sonarsource.com>2020-12-08 16:19:22 +0100
committersonartech <sonartech@sonarsource.com>2020-12-09 20:07:21 +0000
commit296343a51973cf51be21c66964aad2dce7fe7f1e (patch)
tree0677ae66ce919e8dda47f554d1775d1707ab9e59 /sonar-scanner-engine
parent99afeb0ec5899418eec90c2370230d03855b86c1 (diff)
downloadsonarqube-296343a51973cf51be21c66964aad2dce7fe7f1e.tar.gz
sonarqube-296343a51973cf51be21c66964aad2dce7fe7f1e.zip
fix floating point equality
Diffstat (limited to 'sonar-scanner-engine')
-rw-r--r--sonar-scanner-engine/src/main/java/org/sonar/scanner/issue/DefaultFilterableIssue.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/issue/DefaultFilterableIssue.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/issue/DefaultFilterableIssue.java
index 056c3814f75..7b22e7ad95d 100644
--- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/issue/DefaultFilterableIssue.java
+++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/issue/DefaultFilterableIssue.java
@@ -82,7 +82,7 @@ public class DefaultFilterableIssue implements FilterableIssue {
@Override
public Double gap() {
- return rawIssue.getGap() != 0 ? rawIssue.getGap() : null;
+ return Double.compare(rawIssue.getGap(), 0D) != 0 ? rawIssue.getGap() : null;
}
@Override