public List<Note> call() throws GitAPIException {checkCallable();List<Note> notes = new ArrayList<>();NoteMap map = NoteMap.newEmptyMap();try (RevWalk walk = new RevWalk(repo)) {Ref ref = repo.findRef(notesRef);if (ref != null) {RevCommit notesCommit = walk.parseCommit(ref.getObjectId());map = NoteMap.read(walk.getObjectReader(), notesCommit);}Iterator<Note> i = map.iterator();while (i.hasNext())notes.add(i.next());} catch (IOException e) {throw new JGitInternalException(e.getMessage(), e);}return notes;}
public override IList<Note> Call(){CheckCallable();IList<Note> notes = new AList<Note>();RevWalk walk = new RevWalk(repo);NoteMap map = NoteMap.NewEmptyMap();try{Ref @ref = repo.GetRef(notesRef);if (@ref != null){RevCommit notesCommit = walk.ParseCommit(@ref.GetObjectId());map = NoteMap.Read(walk.GetObjectReader(), notesCommit);}Iterator<Note> i = map.Iterator();while (i.HasNext()){notes.AddItem(i.Next());}}catch (IOException e){throw new JGitInternalException(e.Message, e);}finally{walk.Release();}return notes;}