We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6500168 commit 327b6d9Copy full SHA for 327b6d9
src/projections/Tools/Timeline/TimelineMessage.java
@@ -126,8 +126,10 @@ protected EntryMethodObject getSender() {
126
127
protected void addRecipient(EntryMethodObject obj) {
128
synchronized (this) {
129
- if (recipients == null)
130
- recipients = new ArrayList<>();
+ if (recipients == null) {
+ // Set initialCapacity to 1 to prevent recipients from allocating more memory than needed
131
+ recipients = new ArrayList<>(1);
132
+ }
133
recipients.add(obj);
134
}
135
0 commit comments