diff --git a/src/exporters/besu_trace_columns.java b/src/exporters/besu_trace_columns.java index 5192125..b12cf03 100644 --- a/src/exporters/besu_trace_columns.java +++ b/src/exporters/besu_trace_columns.java @@ -17,6 +17,7 @@ import java.math.BigInteger; import java.nio.MappedByteBuffer; +import java.util.ArrayList; import java.util.BitSet; import java.util.List; @@ -43,10 +44,11 @@ public class Trace { {{/each}} static List headers(int length) { - return List.of( - {{ #each registers }} - new ColumnHeader("{{ this.corset_name }}", {{ this.bytes_width }}, length){{ #if @last }});{{ else }},{{ /if }} - {{ /each }} + List headers = new ArrayList<>(); + {{ #each registers }} + headers.add(new ColumnHeader("{{ this.corset_name }}", {{ this.bytes_width }}, length)); + {{ /each }} + return headers; } public Trace(List buffers) {