Thanks to visit codestin.com
Credit goes to github.com

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

AreIn broken when single collection given #299

@t92549

Description

@t92549

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

Metadata

Metadata

Assignees

Labels

bugConfirmed or suspected bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions