Mercurial > hg > Members > tatsuki > bench > jungle-core
comparison src/main/java/jp/ac/u_ryukyu/ie/cr/tatsuki/jungle/store/index/DeleteChildIndexEditor.java @ 135:6e9a8d26e0cf
refactor
author | one |
---|---|
date | Fri, 24 Oct 2014 18:49:48 +0900 |
parents | f46a6e0e4594 |
children | afbe19c98f53 72f454eb04ec |
comparison
equal
deleted
inserted
replaced
134:f46a6e0e4594 | 135:6e9a8d26e0cf |
---|---|
95 loopCount++; | 95 loopCount++; |
96 | 96 |
97 if (pathInt == -1) | 97 if (pathInt == -1) |
98 continue; | 98 continue; |
99 if (editNodePathCopy.right().size() > 0) { | 99 if (editNodePathCopy.right().size() > 0) { |
100 | |
100 editNodePathCopy = editNodePathCopy.right().pop(); | 101 editNodePathCopy = editNodePathCopy.right().pop(); |
101 if (loopCount >= editNodePath.size() | 102 if (loopCount == editNodePath.size() && editNodePathCopy.left() < pathInt) { |
102 && editNodePathCopy.left() < pathInt) { | |
103 newPath = newPath.add(pathInt - 1); | 103 newPath = newPath.add(pathInt - 1); |
104 continue; | 104 continue; |
105 } | 105 } |
106 | 106 |
107 if (!(editNodePathCopy.left() == pathInt)) { | 107 if (!(editNodePathCopy.left() == pathInt)) { |