Two local variables, futureValidators and pastValidators, of org.hibernate.validator.internal.metadata.core.ConstraintHelper constructor are initialized with the specified initial capacity of 11 to prevent reallcation, but have 18 validators to store, respectively, that causes reallocation, eventually. So, expand the inital capacity of future/past validators list up to 18. Change history of future/past validatiors count and initial capacity
HV-968 Closed Avoiding over-sized list allocations, usage of concurrent map and a key look-up in ConstraintHelper commit 1f9be0b23bed593410ce0fa19811a222d616e033 count: 11, initial capacity: 11
HV-981 Closed Removing constraint validators for @Past and @Future for partial Java 8 date/time types commit a592d06c82bfe575f8be484bede78f748e836dd2 count: 7, initial capacity:11
HV-1135 Resolved Add validators for all the relevant java.time types commit 49e76835703f0c16acb2aeb626e7593c011bfb56 count: 18, initial capacity:11 |