# HG changeset patch # User Nobuyasu Oshiro # Date 1390649422 -32400 # Node ID 7ce940e454f02351589d8b788b238eab2e7d9b00 # Parent 09b405d0830ba0d794555886495e5dbb6f7ecb8f Modified LogUpdateCodeSegment diff -r 09b405d0830b -r 7ce940e454f0 src/main/java/app/bbs/codesegment/LogUpdateCodeSegment.java --- a/src/main/java/app/bbs/codesegment/LogUpdateCodeSegment.java Fri Jan 24 17:42:17 2014 +0900 +++ b/src/main/java/app/bbs/codesegment/LogUpdateCodeSegment.java Sat Jan 25 20:30:22 2014 +0900 @@ -31,18 +31,18 @@ NetworkTreeOperationLog netLog = log.asClass(NetworkTreeOperationLog.class); @SuppressWarnings("unchecked") List list = clist.asClass(List.class); - if (!log.from.equals("local")) { - Either either = BulletinBoardJungleManager.update(netLog); - if(either.isA()) { - /* Should throw after new LogUpdateCodeSegment */ - throw new IllegalStateException(); - } - } for (String node : list) { if (!node.equals(log.from)) { ods.put(node, log.key, log.getVal()); } } + if (!log.from.equals("local")) { + Either either = BulletinBoardJungleManager.update(netLog); + if(either.isA()) { + new LogUpdateCodeSegment(index); + throw new IllegalStateException(); + } + } new LogUpdateCodeSegment(index); } }