use methods to specify which report rather than string constants

* MultiReporter
    deleted. direct method calls are a better way to specify the kind of report desired
    getReports was never used to choose from the array of strings. no use case for MultiReporter.
* ArchiveUtils
    writeReportToString was not used, and it used the now deleted MultiReporter#reportTo
* DevUtils, Frontier, ToePool, AbstractFrontier, WorkQueueFrontier
    MultiReporter -> Reporter and make methods that implemented named multireport public
* FrontierNonemptyReport, FrontierSummaryReport
    call the appropriate report method instead of passing a string constant
This commit is contained in:
Travis Wellman committed 2012-06-01 17:57:25 -07:00
1 parent 493e2423f6
commit 07a2fc65ea
10 files changed
+147 -272

No files matched your search

@@ -55,8 +55,8 @@ public class DevUtils {
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
final Thread current = Thread.currentThread();
if (current instanceof MultiReporter) {
MultiReporter tt = (MultiReporter)current;
if (current instanceof Reporter) {
Reporter tt = (Reporter)current;
try {
tt.reportTo(pw);
} catch (IOException e) {