cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject [2/3] git commit: avoid allocating unused HashMap for RowMutation
Date Thu, 28 Feb 2013 15:33:21 GMT
avoid allocating unused HashMap for RowMutation


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

Branch: refs/heads/trunk
Commit: 4b2a9c1b07871eb259ed1f0bd6c54c297a384673
Parents: 500c3f3
Author: Jonathan Ellis <jbellis@apache.org>
Authored: Thu Feb 28 09:33:07 2013 -0600
Committer: Jonathan Ellis <jbellis@apache.org>
Committed: Thu Feb 28 09:33:07 2013 -0600

----------------------------------------------------------------------
 src/java/org/apache/cassandra/db/RowMutation.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/4b2a9c1b/src/java/org/apache/cassandra/db/RowMutation.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/db/RowMutation.java b/src/java/org/apache/cassandra/db/RowMutation.java
index 5064c65..3cb0038 100644
--- a/src/java/org/apache/cassandra/db/RowMutation.java
+++ b/src/java/org/apache/cassandra/db/RowMutation.java
@@ -49,7 +49,7 @@ public class RowMutation implements IMutation
     private final String table;
     private final ByteBuffer key;
     // map of column family id to mutations for that column family.
-    protected Map<UUID, ColumnFamily> modifications = new HashMap<UUID, ColumnFamily>();
+    private final Map<UUID, ColumnFamily> modifications;
 
     public RowMutation(String table, ByteBuffer key)
     {


Mime
View raw message