make the throwables list volatile

This commit is contained in:
Jonas Partner
2008-10-30 14:33:51 +00:00
parent 6ac93f1825
commit efa42f761a

View File

@@ -22,7 +22,7 @@ import org.springframework.integration.util.ErrorHandler;
public class StubErrorHandler implements ErrorHandler {
List<Throwable> throwables = new ArrayList<Throwable>();
volatile List<Throwable> throwables = new ArrayList<Throwable>();
public void handle(Throwable t) {
throwables.add(t);