/** * Like {@link #next()}, but if a checked exception is thrown during the * walk it is rethrown as a {@link RevWalkException}. * * @throws RevWalkException if an {@link IOException} was thrown. * @return next most recent commit; null if traversal is over. */ @Nullable private RevCommit nextForIterator() { try { return next(); } catch (IOException e) { throw new RevWalkException(e); } }
public RevCommit next() { try { final RevCommit r = next; next = RevWalk.this.next(); return r; } catch (MissingObjectException e) { throw new RevWalkException(e); } catch (IncorrectObjectTypeException e) { throw new RevWalkException(e); } catch (IOException e) { throw new RevWalkException(e); } }
@Override public RevCommit next() { try { final RevCommit r = next; next = RevWalk.this.next(); return r; } catch (MissingObjectException e) { throw new RevWalkException(e); } catch (IncorrectObjectTypeException e) { throw new RevWalkException(e); } catch (IOException e) { throw new RevWalkException(e); } }
first = RevWalk.this.next(); } catch (MissingObjectException e) { throw new RevWalkException(e); } catch (IncorrectObjectTypeException e) { throw new RevWalkException(e); } catch (IOException e) { throw new RevWalkException(e);
first = RevWalk.this.next(); } catch (MissingObjectException e) { throw new RevWalkException(e); } catch (IncorrectObjectTypeException e) { throw new RevWalkException(e); } catch (IOException e) { throw new RevWalkException(e);
/** * Like {@link #next()}, but if a checked exception is thrown during the * walk it is rethrown as a {@link RevWalkException}. * * @throws RevWalkException if an {@link IOException} was thrown. * @return next most recent commit; null if traversal is over. */ @Nullable private RevCommit nextForIterator() { try { return next(); } catch (IOException e) { throw new RevWalkException(e); } }