cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject [2/2] git commit: r/m unnecessary Arrays.fill call patch by dbrosius; reviewed by jbellis for CASSANDRA-4059
Date Fri, 23 Mar 2012 22:38:57 GMT
r/m unnecessary Arrays.fill call
patch by dbrosius; reviewed by jbellis for CASSANDRA-4059


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

Branch: refs/heads/trunk
Commit: 0aa128a9a61d068067ce049ac04349a6d76e9c4a
Parents: abf0d99
Author: Jonathan Ellis <jbellis@apache.org>
Authored: Fri Mar 23 16:40:57 2012 -0500
Committer: Jonathan Ellis <jbellis@apache.org>
Committed: Fri Mar 23 16:41:14 2012 -0500

----------------------------------------------------------------------
 .../dht/AbstractByteOrderedPartitioner.java        |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/0aa128a9/src/java/org/apache/cassandra/dht/AbstractByteOrderedPartitioner.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/dht/AbstractByteOrderedPartitioner.java b/src/java/org/apache/cassandra/dht/AbstractByteOrderedPartitioner.java
index 75baab7..36a5173 100644
--- a/src/java/org/apache/cassandra/dht/AbstractByteOrderedPartitioner.java
+++ b/src/java/org/apache/cassandra/dht/AbstractByteOrderedPartitioner.java
@@ -88,7 +88,6 @@ public abstract class AbstractByteOrderedPartitioner extends AbstractPartitioner
     private BigInteger bigForBytes(ByteBuffer bytes, int sigbytes)
     {
         byte[] b = new byte[sigbytes];
-        Arrays.fill(b, (byte) 0); // append zeros
         ByteBufferUtil.arrayCopy(bytes, bytes.position(), b, 0, bytes.remaining());
         return new BigInteger(1, b);
     }


Mime
View raw message