Mercurial > hg > Members > tatsuki > bbs
comparison src/main/java/jp/ac/u_ryukyu/ie/cr/bbs/network/bbs/BulletinBoardJungleManager.java @ 9:2890ae6b1aef
network browsing
author | tatsuki |
---|---|
date | Fri, 03 Feb 2017 02:16:51 +0900 |
parents | 766f7668521f |
children |
comparison
equal
deleted
inserted
replaced
8:766f7668521f | 9:2890ae6b1aef |
---|---|
67 ByteBuffer tBuffer = ByteBuffer.allocate(16); | 67 ByteBuffer tBuffer = ByteBuffer.allocate(16); |
68 NodePath root = new DefaultNodePath(); | 68 NodePath root = new DefaultNodePath(); |
69 tBuffer.putLong(timestamp); | 69 tBuffer.putLong(timestamp); |
70 do { | 70 do { |
71 JungleTreeEditor editor = tree.getJungleTreeEditor(); | 71 JungleTreeEditor editor = tree.getJungleTreeEditor(); |
72 /* | 72 /* |
73 * Merge. | 73 * Merge. |
74 * posが使われていない | |
75 * calculatePositionは何をしているのだろうか? | |
74 */ | 76 */ |
75 int pos = calculatePosition(tree.getRootNode(), netLog.getTimeStamp()); | 77 int pos = calculatePosition(tree.getRootNode(), netLog.getTimeStamp()); |
76 either = JungleUpdater.edit(editor, netLog, pos); | 78 either = JungleUpdater.edit(editor, netLog, pos); |
77 if(either.isA()) { | 79 if(either.isA()) { |
78 throw new IllegalStateException(); | 80 throw new IllegalStateException(); |