summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2010-04-17 18:35:38 -0400
committerCode Review <codereview-daemon@eclipse.org>2010-04-17 18:35:38 -0400
commit9605fcc0fbb2a000f0026eeb34c950faca63599a (patch)
tree4412ed70c28d59ce543573528f52586e402052fc
parentf1be93eb87b86a01f0016dcd6b76123ec33eac48 (diff)
parent466bec3cc9dad4166f80d05044111f9198308f8a (diff)
downloadjgit-9605fcc0fbb2a000f0026eeb34c950faca63599a.tar.gz
jgit-9605fcc0fbb2a000f0026eeb34c950faca63599a.zip
Merge "ObjectIdSubclassMap: Correct Iterator to throw NoSuchElementException"
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectIdSubclassMap.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectIdSubclassMap.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectIdSubclassMap.java
index aa4bf99f33..612e00ea25 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectIdSubclassMap.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectIdSubclassMap.java
@@ -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 class ObjectIdSubclassMap<V extends ObjectId> implements Iterable<V> {
return v;
}
}
- throw new IllegalStateException();
+ throw new NoSuchElementException();
}
public void remove() {