Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace LinkedList with ArrayList #13016

Merged
merged 4 commits into from Nov 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -15,7 +15,7 @@
*/
package io.netty.handler.codec.xml;

import java.util.LinkedList;
import java.util.ArrayList;
import java.util.List;

/**
Expand All @@ -28,7 +28,7 @@ public abstract class XmlElement {
private final String namespace;
private final String prefix;

private final List<XmlNamespace> namespaces = new LinkedList<XmlNamespace>();
private final List<XmlNamespace> namespaces = new ArrayList<XmlNamespace>();

protected XmlElement(String name, String namespace, String prefix) {
this.name = name;
Expand Down
Expand Up @@ -15,15 +15,15 @@
*/
package io.netty.handler.codec.xml;

import java.util.LinkedList;
import java.util.ArrayList;
import java.util.List;

/**
* Specific {@link XmlElement} representing beginning of element.
*/
public class XmlElementStart extends XmlElement {

private final List<XmlAttribute> attributes = new LinkedList<XmlAttribute>();
private final List<XmlAttribute> attributes = new ArrayList<XmlAttribute>();

public XmlElementStart(String name, String namespace, String prefix) {
super(name, namespace, prefix);
Expand Down