]> source.dussan.org Git - sonarqube.git/commitdiff
Fix quality flaw
authorSimon Brandhof <simon.brandhof@gmail.com>
Tue, 18 Dec 2012 09:20:13 +0000 (10:20 +0100)
committerSimon Brandhof <simon.brandhof@gmail.com>
Tue, 18 Dec 2012 09:38:21 +0000 (10:38 +0100)
sonar-core/src/main/java/org/sonar/core/measure/MeasureFilterSql.java

index 77d461fd99b61d42fe4c9503a3600e503f509b8c..78de713e2b680828af110559fce6d967840a5b1f 100644 (file)
@@ -275,9 +275,6 @@ class MeasureFilterSql {
       if (ascending) {
         return Ordering.from(new Comparator<Double>() {
           public int compare(@Nullable Double left, @Nullable Double right) {
-            if (left == right) {
-              return 0;
-            }
             if (left == null) {
               return 1;
             }
@@ -291,9 +288,6 @@ class MeasureFilterSql {
       }
       return Ordering.from(new Comparator<Double>() {
         public int compare(@Nullable Double left, @Nullable Double right) {
-          if (left == right) {
-            return 0;
-          }
           if (left == null) {
             return 1;
           }
@@ -326,9 +320,6 @@ class MeasureFilterSql {
       if (ascending) {
         return Ordering.from(new Comparator<Date>() {
           public int compare(@Nullable Date left, @Nullable Date right) {
-            if (left == right) {
-              return 0;
-            }
             if (left == null) {
               return 1;
             }
@@ -342,9 +333,6 @@ class MeasureFilterSql {
       }
       return Ordering.from(new Comparator<Date>() {
         public int compare(@Nullable Date left, @Nullable Date right) {
-          if (left == right) {
-            return 0;
-          }
           if (left == null) {
             return 1;
           }