package com.conveyal.gtfs.validator.model;

import com.conveyal.gtfs.GTFSFeed;
import com.conveyal.gtfs.error.GTFSError;
import com.conveyal.gtfs.model.FeedInfo;
import com.conveyal.gtfs.stats.FeedStats;
import com.conveyal.gtfs.stats.model.FeedStatistic;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;
import java.util.List;
import java.util.NavigableSet;
import java.util.stream.Collectors;


public class ValidationResult implements Serializable {
	public String fileName;
	public String validationTimestamp;
	public FeedStatistic feedStatistics;
	public long errorCount;
	public NavigableSet<GTFSError> errors;

	public ValidationResult (String fileName, GTFSFeed feed, FeedStats feedStats) {
		this.fileName = fileName;
		this.validationTimestamp = new Date().toString();
		this.feedStatistics = new FeedStatistic(feedStats);
		this.errorCount = feed.errors.size();
		this.errors = feed.errors;
	}
}

@@ -118,49 +118,8 @@
 or;%0A
-import com.conveyal.gtfs.model.FeedInfo;%0A
 impo
@@ -254,135 +254,48 @@
 ava.
-time.LocalDate;%0Aimport java.util.Date;%0Aimport java.util.List;%0Aimport java.util.NavigableSet;%0Aimport java.util.stream.Collectors
+util.Date;%0Aimport java.util.NavigableSet
 ;%0A%0A%0A

remove unused imports