mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-09 11:34:55 +00:00
LANG-1643 : init ArrayList with good default size (#1041)
Co-authored-by: Laurent SCHOELENS <laurent.schoelens@sfr.com>
This commit is contained in:
parent
4e8d9d39f1
commit
4ebef61c03
@ -214,7 +214,7 @@ private static void unregister(final Object lhs, final Object rhs) {
|
||||
*/
|
||||
public EqualsBuilder() {
|
||||
// set up default classes to bypass reflection for
|
||||
bypassReflectionClasses = new ArrayList<>();
|
||||
bypassReflectionClasses = new ArrayList<>(1);
|
||||
bypassReflectionClasses.add(String.class); //hashCode field being lazy but not transient
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user