Skip to content

Commit

Permalink
set size
Browse files Browse the repository at this point in the history
  • Loading branch information
pudo committed Feb 22, 2025
1 parent 3f003eb commit df8e5fc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public static void putJsonStringIterable(ObjectNode node, String key, Iterable<S
}

public static List<String> internStrings(List<String> strings) {
List<String> interned = new ArrayList<>();
List<String> interned = new ArrayList<>(strings.size());
for (String string : strings) {
interned.add(string.intern());
}
Expand Down

0 comments on commit df8e5fc

Please sign in to comment.