diff --git a/src/main/java/org/apache/commons/lang3/builder/EqualsBuilder.java b/src/main/java/org/apache/commons/lang3/builder/EqualsBuilder.java index ae321c9fe..8e26a0925 100644 --- a/src/main/java/org/apache/commons/lang3/builder/EqualsBuilder.java +++ b/src/main/java/org/apache/commons/lang3/builder/EqualsBuilder.java @@ -214,7 +214,7 @@ public class EqualsBuilder implements Builder { */ 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 }