Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/io/flutter/utils/StdoutJsonParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
package io.flutter.utils;

import java.util.ArrayList;
import com.intellij.util.SmartList;
import java.util.List;

/**
Expand All @@ -19,7 +19,7 @@
public class StdoutJsonParser {
private final StringBuilder buffer = new StringBuilder();
private boolean bufferIsJson = false;
private final List<String> lines = new ArrayList<>();
private final List<String> lines = new SmartList<>();
private boolean eatNextEol = false;
private boolean isPotentialWindowsReturn = false;

Expand Down Expand Up @@ -112,7 +112,7 @@ private void flushLine() {
*/
public List<String> getAvailableLines() {
synchronized (lines) {
final List<String> copy = new ArrayList<>(lines);
final List<String> copy = new SmartList<>(lines);
lines.clear();
return copy;
}
Expand Down
Loading