Skip to content

Commit e9852fc

Browse files
authored
Change initialCapacity in AnnotationAuditingMetadata to match the number of data being added.
As support for Joda Time has been removed from the PR below, the amount of data added has been reduced. So I change the initialCapacity of List from 5 to 3. Closes #2668
1 parent d9c45a1 commit e9852fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/springframework/data/auditing/AnnotationAuditingMetadata.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ final class AnnotationAuditingMetadata {
5858

5959
static {
6060

61-
List<String> types = new ArrayList<>(5);
61+
List<String> types = new ArrayList<>(3);
6262
types.add(Date.class.getName());
6363
types.add(Long.class.getName());
6464
types.add(long.class.getName());

0 commit comments

Comments
 (0)