Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public abstract class DefaultReporterImpl implements Reporter {
/**
* Used to buffer reports when startBufferReports is called
*/
protected ArrayList<ReportElement> reportsBuffer = null;
protected List<ReportElement> reportsBuffer = null;

protected boolean buffering = false;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.logging.Level;
import java.util.logging.Logger;

Expand Down Expand Up @@ -364,7 +365,7 @@ public void startLevel(String level, int place) throws IOException {
}
if (buffering) {
if (reportsBuffer == null) {
reportsBuffer = new ArrayList<ReportElement>();
reportsBuffer = Collections.synchronizedList(new ArrayList<ReportElement>());
}
ReportElement re = new ReportElement();
re.setTitle(level);
Expand All @@ -384,7 +385,7 @@ public void stopLevel() throws IOException {
}
if (buffering) {
if (reportsBuffer == null) {
reportsBuffer = new ArrayList<ReportElement>();
reportsBuffer = Collections.synchronizedList(new ArrayList<ReportElement>());
}
ReportElement re = new ReportElement();
re.setOriginator(Thread.currentThread().getName());
Expand Down Expand Up @@ -514,7 +515,7 @@ public synchronized void report(String title, String message, int status,
}
if (buffering) {
if (reportsBuffer == null) {
reportsBuffer = new ArrayList<ReportElement>();
reportsBuffer = Collections.synchronizedList(new ArrayList<ReportElement>());
}
ReportElement currentReportElement = new ReportElement();
currentReportElement.setTitle(title);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import java.io.OutputStream;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Properties;
import java.util.StringTokenizer;
import java.util.Vector;
Expand Down Expand Up @@ -1289,7 +1290,7 @@ public void startLevel(String level, int place) throws IOException {
}
if (buffering) {
if (reportsBuffer == null) {
reportsBuffer = new ArrayList<ReportElement>();
reportsBuffer = Collections.synchronizedList(new ArrayList<ReportElement>());
}
ReportElement re = new ReportElement();
re.setTitle(level);
Expand Down Expand Up @@ -1335,7 +1336,7 @@ public void stopLevel() throws IOException {
}
if (buffering) {
if (reportsBuffer == null) {
reportsBuffer = new ArrayList<ReportElement>();
reportsBuffer = Collections.synchronizedList(new ArrayList<ReportElement>());
}
ReportElement currentReportElement = new ReportElement();
currentReportElement.setOriginator(Thread.currentThread().getName());
Expand Down Expand Up @@ -1364,7 +1365,7 @@ public synchronized void report(String title, String message, int status, boolea

if (buffering && !step) {
if (reportsBuffer == null) {
reportsBuffer = new ArrayList<ReportElement>();
reportsBuffer = Collections.synchronizedList(new ArrayList<ReportElement>());
}
ReportElement newReportElementInstance = new ReportElement();
newReportElementInstance.setTitle(title);
Expand Down