public String getSummaryHTML() throws IOException { if (summaryHTML == null) { try { StringWriter writer = new StringWriter(); ProjectStats stats = getProjectStats(); stats.transformSummaryToHTML(writer); summaryHTML = writer.toString(); } catch (final TransformerException e) { IOException ioe = new IOException("Couldn't generate summary HTML"); ioe.initCause(e); throw ioe; } } return summaryHTML; }
ProjectStats stats = origCollection.getProjectStats(); out.print(appVersion.getReleaseName()); out.print('\t');
static public void merge(HashSet<String> hashes, SortedBugCollection into, SortedBugCollection from) { for (BugInstance bugInstance : from.getCollection()) { if (hashes == null || hashes.add(bugInstance.getInstanceHash())) { into.add(bugInstance); } } ProjectStats stats = into.getProjectStats(); ProjectStats stats2 = from.getProjectStats(); stats.addStats(stats2); Project project = into.getProject(); Project project2 = from.getProject(); project.add(project2); for(AnalysisError error : from.getErrors()) { into.addError(error); } return; }
Profiler profiler = getProjectStats().getProfiler(); profiler.start(handler.getClass()); try {
/** * Get the current AppVersion. */ @Override public AppVersion getCurrentAppVersion() { return new AppVersion(getSequenceNumber()).setReleaseName(getReleaseName()).setTimestamp(getTimestamp()) .setNumClasses(getProjectStats().getNumClasses()).setCodeSize(getProjectStats().getCodeSize()); }
if (withMessages) { computeBugHashes(); getProjectStats().computeFileStats(this); String commonBase = null; for (String s : project.getSourceDirList()) { getProjectStats().writeXML(xmlOutput, withMessages);
origCollection.getProjectStats().getPackageStats().clear(); for (PackageStats ps : origCollection.getProjectStats().getPackageStats()) { ps.getClassStats().clear();
project.getAuxClasspathEntryList().clear(); results.getProjectStats().getPackageStats().clear(); results.clearMissingClasses(); results.clearErrors();
getProjectStats().writeXML(xmlOutput, withMessages);
ProjectStats projectStats = resultCollection.getProjectStats(); projectStats.clearBugCounts(); if (commandLine.classPattern != null) {
public String getSummaryHTML() throws IOException { if (summaryHTML == null) { try { StringWriter writer = new StringWriter(); ProjectStats stats = getProjectStats(); stats.transformSummaryToHTML(writer); summaryHTML = writer.toString(); } catch (final TransformerException e) { IOException ioe = new IOException("Couldn't generate summary HTML"); ioe.initCause(e); throw ioe; } } return summaryHTML; }
static public SortedBugCollection union(SortedBugCollection origCollection, SortedBugCollection newCollection) { SortedBugCollection result = origCollection.duplicate(); for (Iterator<BugInstance> i = newCollection.iterator(); i.hasNext();) { BugInstance bugInstance = i.next(); result.add(bugInstance); } ProjectStats stats = result.getProjectStats(); ProjectStats stats2 = newCollection.getProjectStats(); stats.addStats(stats2); Project project = result.getProject(); project.add(newCollection.getProject()); return result; }
ProjectStats stats = origCollection.getProjectStats(); out.print(appVersion.getReleaseName()); out.print('\t');
public void report(PrintWriter out) { TreeMap<BugRankCategory, Stats> stats = new TreeMap<BugRankCategory, Stats>(); ProjectStats projectStats = bugCollection.getProjectStats(); Collection<BugInstance> bugs = bugCollection.getCollection(); Cloud cloud = bugCollection.getCloud();
Profiler profiler = getProjectStats().getProfiler(); profiler.start(handler.getClass()); try {
static public void merge(HashSet<String> hashes, SortedBugCollection into, SortedBugCollection from) { for (BugInstance bugInstance : from.getCollection()) { if (hashes == null || hashes.add(bugInstance.getInstanceHash())) { into.add(bugInstance); } } ProjectStats stats = into.getProjectStats(); ProjectStats stats2 = from.getProjectStats(); stats.addStats(stats2); Project project = into.getProject(); Project project2 = from.getProject(); project.add(project2); for(AnalysisError error : from.getErrors()) { into.addError(error); } return; }
/** * Get the current AppVersion. */ @Override public AppVersion getCurrentAppVersion() { return new AppVersion(getSequenceNumber()).setReleaseName(getReleaseName()).setTimestamp(getTimestamp()) .setNumClasses(getProjectStats().getNumClasses()).setCodeSize(getProjectStats().getCodeSize()); }
if (withMessages) { computeBugHashes(); getProjectStats().computeFileStats(this); String commonBase = null; for (String s : project.getSourceDirList()) { getProjectStats().writeXML(xmlOutput, withMessages);
project.getAuxClasspathEntryList().clear(); results.getProjectStats().getPackageStats().clear(); results.clearMissingClasses(); results.clearErrors();
getProjectStats().writeXML(xmlOutput, withMessages);