Author: andre
Date: 2009-05-04 16:33:46 +0200 (Mon, 04 May 2009)
New Revision: 34935
Modified:
mmbase/trunk/src/org/mmbase/bridge/util/AbstractCollectionNodeList.java
Log:
got an UnsupportedOperationException, should have been done with
wrappedCollection, added remove method
Modified:
mmbase/trunk/src/org/mmbase/bridge/util/AbstractCollectionNodeList.java
===================================================================
--- mmbase/trunk/src/org/mmbase/bridge/util/AbstractCollectionNodeList.java
2009-05-04 14:13:37 UTC (rev 34934)
+++ mmbase/trunk/src/org/mmbase/bridge/util/AbstractCollectionNodeList.java
2009-05-04 14:33:46 UTC (rev 34935)
@@ -68,11 +68,16 @@
}
@Override
- public boolean add(E o) {
+ public void add(int index, E o) {
if (o == null) throw new IllegalArgumentException();
- return super.add(o);
+ wrappedCollection.add(index, o);
}
+ @Override
+ public E remove(int index) {
+ return super.remove(index);
+ }
+
public Collection<Node> getCollection() {
return wrappedCollection;
}
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs