}
BugCollection origCollection;
origCollection = new SortedBugCollection();
origCollection.readXML(args[0]);
SourceFinder sourceFinder = new SourceFinder(origCollection.getProject());
for (BugInstance b : origCollection) {
SourceLineAnnotation s = b.getPrimarySourceLineAnnotation();
if (!s.isSourceFileKnown()) {
continue;
}
if (!sourceFinder.hasSourceFile(s)) {
continue;
}
SourceFile sourceFile = sourceFinder.findSourceFile(s);
long when = sourceFile.getLastModified();
if (when > 0) {
Date firstSeen = new Date(when);
b.getXmlProps().setFirstSeen(firstSeen);
System.out.println("Set first seen to " + firstSeen);