提交 7917ccb7 编写于 作者: K Kohsuke Kawaguchi

reducing variable scope

上级 1f38518f
......@@ -375,11 +375,11 @@ public abstract class AbstractLazyLoadRunMap<R> extends AbstractMap<Integer,R> i
// invariant: 0<=lo<=pivot<=hi<=idOnDisk.size()
int pivot;
while (true) {
pivot = (lo+hi)/2;
if (hi<=lo) break; // end of search
final int pivot = (lo+hi)/2;
R r = load(idOnDisk.get(pivot), null);
if (r==null) {
// this ID isn't valid. get rid of that and retry pivot
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册