rename dangerous method

This commit is contained in:
Alexey Kudravtsev
2012-01-31 13:25:59 +04:00
parent 764c0e6e0c
commit 0961a36ee4
@@ -678,7 +678,7 @@ public class ContainerUtil {
}
@Nullable
public static <T> T getLastItem(final Collection<T> items) {
public static <T> T iterateAndGetLastItem(@NotNull Iterable<T> items) {
Iterator<T> itr = items.iterator();
T res = null;
while (itr.hasNext()) {