jcabi-immutable
jcabi-immutable copied to clipboard
Array, ArraySet and ArrayMap should get rid of "instanceof"
The constructor of Array
, ArraySet
and ArrayMap
uses instanceof
for doing different logics according to different input which implements Iterable
. This can be avoided by creating 2 new constructors taking Collection
and other class and put the logic there.
@yegor256 dispatch this issue please