Merge pull request #91 from shannah/issue_88_part2

Another fix for Collections.shuffle().  Without this fix, shuffle doesn'...
This commit is contained in:
Alexey Andreev 2015-03-27 21:14:25 +03:00
commit efe0b75206

View File

@ -283,7 +283,7 @@ public class TCollections extends TObject {
shuffleRandomAccess(list, rnd);
} else {
TList<Object> randomAccess = new TArrayList<>(list);
shuffleRandomAccess(list, rnd);
shuffleRandomAccess(randomAccess, rnd);
list.clear();
((TList<Object>)list).addAll(randomAccess);
}