Skip to content
Snippets Groups Projects
Commit 9605fcc0 authored by Matthias Sohn's avatar Matthias Sohn Committed by Code Review
Browse files

Merge "ObjectIdSubclassMap: Correct Iterator to throw NoSuchElementException"

parents f1be93eb 466bec3c
No related branches found
No related tags found
No related merge requests found
......@@ -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() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment