ソースを参照

poprawiony do dziedziczenia

Ranides Atterwim 13 年 前
コミット
3459fb2b7b

+ 7 - 3
src/main/java/net/ranides/assira/collection/list/ImmutableListIterator.java

@@ -24,19 +24,23 @@ public abstract class ImmutableListIterator<T> extends AbstractListIterator<T> {
     public ImmutableListIterator(int index) {
         super(index);
     }
+    
+    public ImmutableListIterator() {
+        super();
+    }
 
     @Override
-    protected void remove(int index) {
+    protected final void remove(int index) {
         throw new UnsupportedOperationException(LIST_IS_IMMUTABLE);
     }
 
     @Override
-    protected void add(int index, T value) {
+    protected final void add(int index, T value) {
         throw new UnsupportedOperationException(LIST_IS_IMMUTABLE);
     }
 
     @Override
-    protected void set(int index, T value) {
+    protected final void set(int index, T value) {
         throw new UnsupportedOperationException(LIST_IS_IMMUTABLE);
     }