|
@@ -37,6 +37,7 @@ import java.util.Date;
|
37
|
37
|
import java.util.HashMap;
|
38
|
38
|
import java.util.List;
|
39
|
39
|
import java.util.Map;
|
|
40
|
+import java.util.concurrent.CopyOnWriteArrayList;
|
40
|
41
|
|
41
|
42
|
/**
|
42
|
43
|
* CallbackObject.
|
|
@@ -50,7 +51,8 @@ public abstract class CallbackObject {
|
50
|
51
|
protected final Class<? extends CallbackInterface> type;
|
51
|
52
|
|
52
|
53
|
/** Arraylist for storing callback information related to the callback. */
|
53
|
|
- protected final List<CallbackInterface> callbackInfo = new ArrayList<CallbackInterface>();
|
|
54
|
+ protected final List<CallbackInterface> callbackInfo =
|
|
55
|
+ new CopyOnWriteArrayList<CallbackInterface>();
|
54
|
56
|
|
55
|
57
|
/** Reference to the Parser that owns this callback. */
|
56
|
58
|
protected Parser myParser;
|