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/trunk Commit: a64bc43f8da05114fa1d9e9c6409e82361d659f0 Parents: 8e1bdf3 Author: Brandon Williams <[email protected]> Authored: Wed Apr 15 10:39:37 2015 -0500 Committer: Brandon Williams <[email protected]> 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);
