public class Analysis {
BugCollection m_bugCollection;
String m_buildNumber;
- Date m_date; // Date/time when analysis was started
+ Date m_start; // Date/time when analysis was started
+ Date m_end;
public Analysis(String buildNumber) {
m_bugCollection = null;
m_buildNumber = buildNumber;
- m_date = new Date();
+ m_start = new Date();
+ m_end = null;
}
public BugCollection getBugCollection() { return m_bugCollection; }
+ public String getBuildNumber() { return m_buildNumber; }
+ public Date getStart() { return m_start; }
+ public Date getEnd() { return m_end; }
public void parse(InputSource xml) throws FileNotFoundException, IOException, SAXException
{
reader.parse(xml);
}
+ // Set the end time (when FindBugs was done analyzing)
+ public void setEnd(Date date)
+ {
+ m_end = date;
+ }
+
public void dump(PrintWriter pw)
{
if (null != m_bugCollection) {