You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by we...@apache.org on 2019/08/19 01:44:22 UTC

[hadoop] branch branch-3.1 updated: HADOOP-15246. SpanReceiverInfo - Prefer ArrayList over LinkedList. Contributed by David Mollitor.

This is an automated email from the ASF dual-hosted git repository.

weichiu pushed a commit to branch branch-3.1
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/branch-3.1 by this push:
     new 0b7f9a0  HADOOP-15246. SpanReceiverInfo - Prefer ArrayList over LinkedList. Contributed by David Mollitor.
0b7f9a0 is described below

commit 0b7f9a09c288caad3fb70a4697666dc75a1bbcfc
Author: David Mollitor <da...@cloudera.com>
AuthorDate: Sun Aug 18 18:42:41 2019 -0700

    HADOOP-15246. SpanReceiverInfo - Prefer ArrayList over LinkedList. Contributed by David Mollitor.
    
    Signed-off-by: Wei-Chiu Chuang <we...@apache.org>
    (cherry picked from commit 901652e26321832ac42ce54daa18ebc1813772b5)
    (cherry picked from commit 1b30b3fbe7b5e130778c79465ac7986772a83ab8)
---
 .../src/main/java/org/apache/hadoop/tracing/SpanReceiverInfo.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/tracing/SpanReceiverInfo.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/tracing/SpanReceiverInfo.java
index 92aaa10..546af26 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/tracing/SpanReceiverInfo.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/tracing/SpanReceiverInfo.java
@@ -17,7 +17,7 @@
  */
 package org.apache.hadoop.tracing;
 
-import java.util.LinkedList;
+import java.util.ArrayList;
 import java.util.List;
 
 import org.apache.hadoop.classification.InterfaceAudience;
@@ -29,7 +29,7 @@ public class SpanReceiverInfo {
   private final long id;
   private final String className;
   final List<ConfigurationPair> configPairs =
-      new LinkedList<ConfigurationPair>();
+      new ArrayList<ConfigurationPair>();
 
   static class ConfigurationPair {
     private final String key;


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org