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 @@ public class EqualsBuilder implements Builder<Boolean> {
|
|||
*/
|
||||
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…
Reference in New Issue