diff --git a/src/java/com/samskivert/util/ObserverList.java b/src/java/com/samskivert/util/ObserverList.java index bd6a89ec..dba8d76a 100644 --- a/src/java/com/samskivert/util/ObserverList.java +++ b/src/java/com/samskivert/util/ObserverList.java @@ -196,6 +196,17 @@ public class ObserverList extends ArrayList return -1; } + @Override + public boolean remove (Object element) + { + int dex = indexOf(element); + if (dex == -1) { + return false; // not found + } + remove(dex); + return true; + } + /** * Applies the supplied observer operation to all observers in the * list in a manner conforming to the notification ordering policy