use of aserg.gtf.model.NewFileInfo in project Truck-Factor by aserg-ufmg.
the class DOACalculator method getFiles.
private static List<File> getFiles(Repository repository, Collection<LogCommitInfo> commitFiles, List<NewFileInfo> filesInfo) {
List<File> tempfiles = new ArrayList<File>();
Map<String, List<LogCommitFileInfo>> mapFiles = getCommitFilesMap(commitFiles);
for (NewFileInfo fileInfo : filesInfo) {
if (!fileInfo.getFiltered()) {
File file = new File(fileInfo.getPath());
if (setFileHistory(file, repository, fileInfo, mapFiles))
tempfiles.add(file);
}
}
return tempfiles;
}
Aggregations