cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject [3/3] git commit: cleanup
Date Tue, 04 Dec 2012 20:33:29 GMT
cleanup


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

Branch: refs/heads/trunk
Commit: f07effb1c3f22d29f1fc10492d4658fd944c0ea1
Parents: 7abc634
Author: Jonathan Ellis <jbellis@apache.org>
Authored: Sat Dec 1 21:13:06 2012 +0900
Committer: Jonathan Ellis <jbellis@apache.org>
Committed: Tue Dec 4 14:32:13 2012 -0600

----------------------------------------------------------------------
 .../apache/cassandra/stress/util/Operation.java    |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/f07effb1/tools/stress/src/org/apache/cassandra/stress/util/Operation.java
----------------------------------------------------------------------
diff --git a/tools/stress/src/org/apache/cassandra/stress/util/Operation.java b/tools/stress/src/org/apache/cassandra/stress/util/Operation.java
index 4737692..3a90517 100644
--- a/tools/stress/src/org/apache/cassandra/stress/util/Operation.java
+++ b/tools/stress/src/org/apache/cassandra/stress/util/Operation.java
@@ -84,7 +84,7 @@ public abstract class Operation
             int times = session.getColumnSize() / hash.length();
             int sumReminder = session.getColumnSize() % hash.length();
 
-            String value = new StringBuilder(multiplyString(hash, times)).append(hash.substring(0,
sumReminder)).toString();
+            String value = multiplyString(hash, times) + hash.substring(0, sumReminder);
             values.add(ByteBuffer.wrap(value.getBytes()));
         }
 
@@ -244,7 +244,6 @@ public abstract class Operation
     {
         return Lists.transform(queryParams, new Function<String, ByteBuffer>()
         {
-            @Override
             public ByteBuffer apply(String param)
             {
                 return ByteBufferUtil.bytes(param);
@@ -262,7 +261,7 @@ public abstract class Operation
      */
     protected static String formatCqlQuery(String query, List<String> parms)
     {
-        int marker = 0, position = 0;
+        int marker, position = 0;
         StringBuilder result = new StringBuilder();
 
         if (-1 == (marker = query.indexOf('?')) || parms.size() == 0)


Mime
View raw message