mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
rename dangerous method
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user