Merge "ObjectIdSubclassMap: Correct Iterator to throw NoSuchElementException"

This commit is contained in:
Matthias Sohn 2010-04-17 18:35:38 -04:00 committed by Code Review
commit 9605fcc0fb
1 changed files with 2 additions and 1 deletions

View File

@ -46,6 +46,7 @@
package org.eclipse.jgit.lib;
import java.util.Iterator;
import java.util.NoSuchElementException;
/**
* Fast, efficient map specifically for {@link ObjectId} subclasses.
@ -158,7 +159,7 @@ public V next() {
return v;
}
}
throw new IllegalStateException();
throw new NoSuchElementException();
}
public void remove() {