Authored by hugufei

fix CommonRecallSkn compareTo

@@ -54,6 +54,13 @@ public class CommonRecallSkn implements Comparable<CommonRecallSkn>,Serializable @@ -54,6 +54,13 @@ public class CommonRecallSkn implements Comparable<CommonRecallSkn>,Serializable
54 54
55 @Override 55 @Override
56 public int compareTo(CommonRecallSkn old) { 56 public int compareTo(CommonRecallSkn old) {
57 - return score - old.score >= 0 ? -1 : 1; 57 + double c = score - old.score;
  58 + if(c>0){
  59 + return -1;
  60 + }
  61 + if(c<0){
  62 + return 1;
  63 + }
  64 + return 0;
58 } 65 }
59 } 66 }