Init the collection types to the expected size

PiperOrigin-RevId: 558102287
This commit is contained in:
claincly 2023-08-18 11:54:38 +01:00 committed by Julia Bibik
parent 2386b7e944
commit a5903f5d3e

View File

@ -254,8 +254,8 @@ public final class DebugTraceUtil {
private int totalCount; private int totalCount;
public EventLogger() { public EventLogger() {
firstLogs = new ArrayList<>(); firstLogs = new ArrayList<>(MAX_FIRST_LAST_LOGS);
lastLogs = new ArrayDeque<>(); lastLogs = new ArrayDeque<>(MAX_FIRST_LAST_LOGS);
totalCount = 0; totalCount = 0;
} }