Use Character cache.

This commit is contained in:
Gary Gregory 2020-12-31 12:08:18 -05:00
parent 3a66c79e72
commit 473bb29aea
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ public class SequencesComparatorTest {
private List<Character> sequence(final String string) {
final List<Character> list = new ArrayList<>();
for (int i = 0; i < string.length(); ++i) {
list.add(new Character(string.charAt(i)));
list.add(Character.valueOf(string.charAt(i)));
}
return list;
}