forked from I2P_Developers/i2p.i2p
Use Double.compare() in comparators (findbugs)
This commit is contained in:
@ -115,11 +115,7 @@ class SybilRenderer {
|
||||
reasons.add(reason);
|
||||
}
|
||||
public int compareTo(Points r) {
|
||||
if (points > r.points)
|
||||
return 1;
|
||||
if (points < r.points)
|
||||
return -1;
|
||||
return 0;
|
||||
return Double.compare(points, r.points);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user