public List<Ref> call() throws GitAPIException {checkCallable();List<Ref> tags = new ArrayList<>();try (RevWalk revWalk = new RevWalk(repo)) {List<Ref> refList = repo.getRefDatabase().getRefsByPrefix(Constants.R_TAGS);for (Ref ref : refList) {tags.add(ref);}} catch (IOException e) {throw new JGitInternalException(e.getMessage(), e);}Collections.sort(tags,(Ref o1, Ref o2) -> o1.getName().compareTo(o2.getName()));setCallable(false);return tags;}

public override IList<Ref> Call(){CheckCallable();IDictionary<string, Ref> refList;IList<Ref> tags = new AList<Ref>();RevWalk revWalk = new RevWalk(repo);try{refList = repo.RefDatabase.GetRefs(Constants.R_TAGS);foreach (Ref @ref in refList.Values){tags.AddItem(@ref);}}catch (IOException e){throw new JGitInternalException(e.Message, e);}finally{revWalk.Release();}tags.Sort(new _IComparer_92());SetCallable(false);return tags;}
