Make sure invocation listeners are only added to the list once.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3245 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2004-11-26 23:19:29 +00:00
parent bf9582e31c
commit c43689b104
2 changed files with 10 additions and 3 deletions
@@ -13,6 +13,7 @@ import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.regex.Pattern;
import java.util.regex.Matcher;
@@ -353,7 +354,7 @@ public abstract class InvocationTask extends Task
FileUtils.writeStringToFile(new File(path), data, "UTF-8");
}
protected static void checkedAdd (SortableArrayList list, String value)
protected static void checkedAdd (List list, Object value)
{
if (!list.contains(value)) {
list.add(value);