You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default implementation for EnumSetRandomizer takes a abs(new ByteRandomizer().getRandomValue()) as number of elements to randomly copy into the set. This randomizer can produce a 0 which in turn will cause a IllegalArgumentException > "Collection is empty" when fetching a new randomValue for the EnumSet.
Solution:
The minimum value for nbElements should be 1 so either there should be a different default randomizer or when the value is 0 it should become 1
The text was updated successfully, but these errors were encountered:
The default implementation for
EnumSetRandomizer
takes aabs(new ByteRandomizer().getRandomValue())
as number of elements to randomly copy into the set. This randomizer can produce a0
which in turn will cause aIllegalArgumentException
> "Collection is empty" when fetching a new randomValue for the EnumSet.Solution:
The minimum value for
nbElements
should be1
so either there should be a different default randomizer or when the value is0
it should become1
The text was updated successfully, but these errors were encountered: