Repository: cassandra Updated Branches: refs/heads/trunk 98cbd561e -> f1cabcade
avoid boxing in TreeMap comparator Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/f1cabcad Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/f1cabcad Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/f1cabcad Branch: refs/heads/trunk Commit: f1cabcade8b718bcccf027ca6b7c0773cef5224e Parents: 98cbd56 Author: Dave Brosius <dbros...@mebigfatguy.com> Authored: Sun Jun 26 00:39:11 2016 -0400 Committer: Dave Brosius <dbros...@mebigfatguy.com> Committed: Sun Jun 26 00:39:11 2016 -0400 ---------------------------------------------------------------------- src/java/org/apache/cassandra/utils/StreamingHistogram.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cassandra/blob/f1cabcad/src/java/org/apache/cassandra/utils/StreamingHistogram.java ---------------------------------------------------------------------- diff --git a/src/java/org/apache/cassandra/utils/StreamingHistogram.java b/src/java/org/apache/cassandra/utils/StreamingHistogram.java index 7ea97e5..a500450 100644 --- a/src/java/org/apache/cassandra/utils/StreamingHistogram.java +++ b/src/java/org/apache/cassandra/utils/StreamingHistogram.java @@ -58,7 +58,7 @@ public class StreamingHistogram if (o1.getClass().equals(o2.getClass())) return ((Comparable)o1).compareTo(o2); else - return ((Double)o1.doubleValue()).compareTo(o2.doubleValue()); + return Double.compare(o1.doubleValue(), o2.doubleValue()); }); }