diff options
author | Jonathan Nieder <jrn@google.com> | 2018-11-08 18:11:57 -0800 |
---|---|---|
committer | Jonathan Nieder <jrn@google.com> | 2018-11-08 18:19:01 -0800 |
commit | a0cd400c37bb861264fa2147f94123c6f0e19b7c (patch) | |
tree | d9746e37221737b14dd9d367d5122d566c429e12 /org.eclipse.jgit/resources | |
parent | aeba0032003480dd821edc22fa4ab1a66192549f (diff) | |
download | jgit-a0cd400c37bb861264fa2147f94123c6f0e19b7c.tar.gz jgit-a0cd400c37bb861264fa2147f94123c6f0e19b7c.zip |
Simplify RevWalk#iterator by factoring out common code
Factor out a helper that calls next() and tunnels IOException in a
RuntimeException, similar to TunnelException.tunnel(RevWalk::next) in
Guava terms[1].
This should make the code a little more readable. No functional
change intended.
[1] https://github.com/google/guava/issues/2828#issuecomment-304187823
Change-Id: I97c062d03a17663d5c40895fd3d2c6a7306d4f39
Signed-off-by: Jonathan Nieder <jrn@google.com>
Diffstat (limited to 'org.eclipse.jgit/resources')
0 files changed, 0 insertions, 0 deletions