import org.eclipse.jgit.revwalk.FollowFilter;
import org.eclipse.jgit.revwalk.RevCommit;
import org.eclipse.jgit.revwalk.RevTree;
import org.eclipse.jgit.revwalk.RevWalk;
import org.eclipse.jgit.treewalk.AbstractTreeIterator;
<BUG>import org.eclipse.jgit.treewalk.CanonicalTreeParser;
public class DiffRenamedFile {
private static AbstractTreeIterator prepareTreeParser(Repository repository, String objectId) throws IOException,

MissingObjectException,
IncorrectObjectTypeException {</BUG>
try (RevWalk walk = new RevWalk(repository)) {

import org.eclipse.jgit.revwalk.FollowFilter;
import org.eclipse.jgit.revwalk.RevCommit;
import org.eclipse.jgit.revwalk.RevTree;
import org.eclipse.jgit.revwalk.RevWalk;
import org.eclipse.jgit.treewalk.AbstractTreeIterator;
import org.eclipse.jgit.treewalk.CanonicalTreeParser;
import java.io.IOException;
import java.util.List;
public class DiffRenamedFile {
private static AbstractTreeIterator prepareTreeParser(Repository repository, String objectId) throws IOException {
try (RevWalk walk = new RevWalk(repository)) {
