[git] use Pair.create instead of constructor

This commit is contained in:
Julia Beliaeva
2017-03-18 18:57:07 +03:00
parent 5f046cc52b
commit 00300b930f
@@ -207,13 +207,13 @@ public class GitCommittedChangeListProvider implements CommittedChangesProvider<
}
for (Change change : changes) {
if (change.getAfterRevision() != null && FileUtil.filesEqual(filePath.getIOFile(), change.getAfterRevision().getFile().getIOFile())) {
return new Pair<>(commit, filePath);
return Pair.create(commit, filePath);
}
}
final String afterTime = "--after=" + GitUtil.gitTime(gitCommit.getDate());
final List<VcsFileRevision> history = GitHistoryUtils.history(myProject, filePath, (VirtualFile)null, afterTime);
if (history.isEmpty()) {
return new Pair<>(commit, filePath);
return Pair.create(commit, filePath);
}
return Pair.create(commit, ((GitFileRevision)history.get(history.size() - 1)).getPath());
}