浏览代码

Merge "ObjectIdSubclassMap: Correct Iterator to throw NoSuchElementException"

tags/v0.8.1
Matthias Sohn 14 年前
父节点
当前提交
9605fcc0fb
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectIdSubclassMap.java

+ 2
- 1
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() {

正在加载...
取消
保存