You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by db...@apache.org on 2014/12/18 03:17:28 UTC

cassandra git commit: parseLong for primitives

Repository: cassandra
Updated Branches:
  refs/heads/trunk ba6e4239e -> a7c1729c1


parseLong for primitives


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/a7c1729c
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/a7c1729c
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/a7c1729c

Branch: refs/heads/trunk
Commit: a7c1729c17a9f1eaa26b23338357b364ba986c77
Parents: ba6e423
Author: Dave Brosius <db...@mebigfatguy.com>
Authored: Wed Dec 17 21:16:19 2014 -0500
Committer: Dave Brosius <db...@mebigfatguy.com>
Committed: Wed Dec 17 21:16:49 2014 -0500

----------------------------------------------------------------------
 src/java/org/apache/cassandra/dht/Murmur3Partitioner.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/a7c1729c/src/java/org/apache/cassandra/dht/Murmur3Partitioner.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/dht/Murmur3Partitioner.java b/src/java/org/apache/cassandra/dht/Murmur3Partitioner.java
index 0ff5eeb..11d3abc 100644
--- a/src/java/org/apache/cassandra/dht/Murmur3Partitioner.java
+++ b/src/java/org/apache/cassandra/dht/Murmur3Partitioner.java
@@ -247,7 +247,7 @@ public class Murmur3Partitioner implements IPartitioner
         {
             try
             {
-                return new LongToken(Long.valueOf(string));
+                return new LongToken(Long.parseLong(string));
             }
             catch (NumberFormatException e)
             {