@Override public boolean next() throws IOException { for (;;) { RefQueueEntry t = poll(); if (t == null) { return false; } ref = t.rc.getRef(); updateIndex = t.rc.getUpdateIndex(); boolean include = includeDeletes || !t.rc.wasDeleted(); add(t); skipShadowedRefs(ref.getName()); if (include) { return true; } } }
@Override public boolean next() throws IOException { for (;;) { RefQueueEntry t = poll(); if (t == null) { return false; } ref = t.rc.getRef(); updateIndex = t.rc.getUpdateIndex(); boolean include = includeDeletes || !t.rc.wasDeleted(); add(t); skipShadowedRefs(ref.getName()); if (include) { return true; } } }