Skip to content

Commit

Permalink
Trivial tweak: avoid creating redundant ArrayList instance
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellansun committed Nov 22, 2024
1 parent 9435d96 commit ea5bc22
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1124,7 +1124,7 @@ public static List<String> findAll(final CharSequence self, final Pattern patter
list.add((String) iter.next());
}
}
return new ArrayList<>(list);
return list;
}

/**
Expand Down

0 comments on commit ea5bc22

Please sign in to comment.