This repository was archived by the owner on Jun 6, 2025. It is now read-only.

Description
Due to a change in the constructor to add the boolean flag, now when a single collection is provided, the varargs constructor is used which puts the collection inside another collection:
|
public AreIn(final Collection<?> allowedValues, final boolean nullOrEmptyAllowedValuesAccepted) { |
|
this.allowedValues = allowedValues; |
|
this.nullOrEmptyAllowedValuesAccepted = nullOrEmptyAllowedValuesAccepted; |
|
} |
|
|
|
public AreIn(final Object... allowedValues) { |
|
this.allowedValues = Sets.newHashSet(allowedValues); |
|
} |
Another constructor must be added which can take a single collection