cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brandonwilli...@apache.org
Subject [1/6] cassandra git commit: lists work better when you initialize them
Date Wed, 15 Apr 2015 15:40:44 GMT
Repository: cassandra
Updated Branches:
  refs/heads/cassandra-2.0 8e1bdf3e8 -> a64bc43f8
  refs/heads/cassandra-2.1 7b5021324 -> 3c17ac6e1
  refs/heads/trunk f6b424ff7 -> 46c3f7d87


lists work better when you initialize them


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

Branch: refs/heads/cassandra-2.0
Commit: a64bc43f8da05114fa1d9e9c6409e82361d659f0
Parents: 8e1bdf3
Author: Brandon Williams <brandonwilliams@apache.org>
Authored: Wed Apr 15 10:39:37 2015 -0500
Committer: Brandon Williams <brandonwilliams@apache.org>
Committed: Wed Apr 15 10:40:16 2015 -0500

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


http://git-wip-us.apache.org/repos/asf/cassandra/blob/a64bc43f/src/java/org/apache/cassandra/gms/Gossiper.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/gms/Gossiper.java b/src/java/org/apache/cassandra/gms/Gossiper.java
index c7c4af8..b77064d 100644
--- a/src/java/org/apache/cassandra/gms/Gossiper.java
+++ b/src/java/org/apache/cassandra/gms/Gossiper.java
@@ -71,7 +71,7 @@ public class Gossiper implements IFailureDetectionEventListener, GossiperMBean
     static final ApplicationState[] STATES = ApplicationState.values();
     static final List<String> DEAD_STATES = Arrays.asList(VersionedValue.REMOVING_TOKEN,
VersionedValue.REMOVED_TOKEN,
                                                           VersionedValue.STATUS_LEFT, VersionedValue.HIBERNATE);
-    static ArrayList<String> SILENT_SHUTDOWN_STATES;
+    static ArrayList<String> SILENT_SHUTDOWN_STATES = new ArrayList<>();
     static {
         SILENT_SHUTDOWN_STATES.addAll(DEAD_STATES);
         SILENT_SHUTDOWN_STATES.add(VersionedValue.STATUS_BOOTSTRAPPING);


Mime
View raw message