X-Git-Url: http://jaekl.net/gitweb/?a=blobdiff_plain;f=prod%2Fnet%2Fjaekl%2Fcfb%2Fanalyze%2FAnalysis.java;h=d720184b22326325ba3706df619a3c9d7e6a61de;hb=a4a577abc3f9b2b1147caafd1cb39fa8c2622cd4;hp=70bad863e00d6b858a625a7019cffa5b40de781d;hpb=e1520fe079abf9b27dbd859c0e186eeee4898f7e;p=cfb.git diff --git a/prod/net/jaekl/cfb/analyze/Analysis.java b/prod/net/jaekl/cfb/analyze/Analysis.java index 70bad86..d720184 100644 --- a/prod/net/jaekl/cfb/analyze/Analysis.java +++ b/prod/net/jaekl/cfb/analyze/Analysis.java @@ -19,20 +19,24 @@ import org.xml.sax.helpers.XMLReaderFactory; public class Analysis { long m_id; BugCollection m_bugCollection; + String m_projectName; String m_buildNumber; long m_start; // Date.getTime() when analysis was started long m_end; - public Analysis(String buildNumber) { + public Analysis(String projectName, String buildNumber) { m_id = (-1); m_bugCollection = null; + m_projectName = projectName; m_buildNumber = buildNumber; m_start = new Date().getTime(); m_end = 0; + m_bugCollection = new BugCollection(); } public BugCollection getBugCollection() { return m_bugCollection; } public long getId() { return m_id; } + public String getProjectName() { return m_projectName; } public String getBuildNumber() { return m_buildNumber; } public Date getStart() { return new Date(m_start); } public Date getEnd() { return (0 == m_end ? null : new Date(m_end)); } // the end time (when FindBugs was done analyzing)