浏览代码

poprawiony do dziedziczenia

Ranides Atterwim 13 年之前
父节点
当前提交
3459fb2b7b
共有 1 个文件被更改,包括 7 次插入3 次删除
  1. 7 3
      src/main/java/net/ranides/assira/collection/list/ImmutableListIterator.java

+ 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);
     }