jcabi-immutable icon indicating copy to clipboard operation
jcabi-immutable copied to clipboard

Array, ArraySet and ArrayMap should get rid of "instanceof"

Open super132 opened this issue 9 years ago • 1 comments

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.

super132 avatar May 27 '15 07:05 super132

@yegor256 dispatch this issue please

dmarkov avatar Jun 15 '15 07:06 dmarkov