提交 56b65b1d 编写于 作者: M Mathieu Bastian

Debug in ImportContainerImpl

上级 3955dfbf
...@@ -168,7 +168,7 @@ public class ImportContainerImpl implements Container, ContainerLoader, Containe ...@@ -168,7 +168,7 @@ public class ImportContainerImpl implements Container, ContainerLoader, Containe
public NodeDraftImpl getNode(String id) { public NodeDraftImpl getNode(String id) {
checkId(id); checkId(id);
int index = nodeMap.get(id); int index = nodeMap.getInt(id);
NodeDraftImpl node = null; NodeDraftImpl node = null;
if (index == NULL_INDEX) { if (index == NULL_INDEX) {
if (parameters.isAutoNode()) { if (parameters.isAutoNode()) {
...@@ -374,7 +374,7 @@ public class ImportContainerImpl implements Container, ContainerLoader, Containe ...@@ -374,7 +374,7 @@ public class ImportContainerImpl implements Container, ContainerLoader, Containe
public EdgeDraft getEdge(String id) { public EdgeDraft getEdge(String id) {
checkId(id); checkId(id);
int index = edgeMap.get(id); int index = edgeMap.getInt(id);
if (index == NULL_INDEX) { if (index == NULL_INDEX) {
return null; return null;
} }
...@@ -622,7 +622,7 @@ public class ImportContainerImpl implements Container, ContainerLoader, Containe ...@@ -622,7 +622,7 @@ public class ImportContainerImpl implements Container, ContainerLoader, Containe
for (Iterator<NodeDraftImpl> itr = nodeList.iterator(); itr.hasNext();) { for (Iterator<NodeDraftImpl> itr = nodeList.iterator(); itr.hasNext();) {
NodeDraftImpl node = itr.next(); NodeDraftImpl node = itr.next();
if (node != null && node.isCreatedAuto()) { if (node != null && node.isCreatedAuto()) {
int index = nodeMap.remove(node.getId()); int index = nodeMap.removeInt(node.getId());
nodeList.set(index, null); nodeList.set(index, null);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册