Fix logic that determine if an immutable list needs to be copied

This commit is contained in:
Ben Gruver
2012-11-11 14:22:01 -08:00
parent 12b970ed4d
commit 07cf2064e6

View File

@ -62,7 +62,7 @@ public abstract class ImmutableListConverter<ImmutableItem, Item> {
boolean needsCopy = false;
if (iterable instanceof ImmutableList) {
for (Item element: iterable) {
if (isImmutable(element)) {
if (!isImmutable(element)) {
needsCopy = true;
break;
}