HADOOP-15246. SpanReceiverInfo - Prefer ArrayList over LinkedList. Contributed by David Mollitor.

Signed-off-by: Wei-Chiu Chuang <weichiu@apache.org>
(cherry picked from commit 901652e26321832ac42ce54daa18ebc1813772b5)
(cherry picked from commit 1b30b3fbe7)
This commit is contained in:
David Mollitor 2019-08-18 18:42:41 -07:00 committed by Wei-Chiu Chuang
parent 92c3a581ec
commit 0b7f9a09c2
1 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@
*/ */
package org.apache.hadoop.tracing; package org.apache.hadoop.tracing;
import java.util.LinkedList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import org.apache.hadoop.classification.InterfaceAudience; import org.apache.hadoop.classification.InterfaceAudience;
@ -29,7 +29,7 @@ public class SpanReceiverInfo {
private final long id; private final long id;
private final String className; private final String className;
final List<ConfigurationPair> configPairs = final List<ConfigurationPair> configPairs =
new LinkedList<ConfigurationPair>(); new ArrayList<ConfigurationPair>();
static class ConfigurationPair { static class ConfigurationPair {
private final String key; private final String key;