Mercurial > hg > Members > nobuyasu > jungle-network
changeset 141:7ce940e454f0
Modified LogUpdateCodeSegment
author | Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 25 Jan 2014 20:30:22 +0900 |
parents | 09b405d0830b |
children | 85dab752d0ac |
files | src/main/java/app/bbs/codesegment/LogUpdateCodeSegment.java |
diffstat | 1 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- 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<String> list = clist.asClass(List.class); - if (!log.from.equals("local")) { - Either<Error, JungleTreeEditor> 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<Error, JungleTreeEditor> either = BulletinBoardJungleManager.update(netLog); + if(either.isA()) { + new LogUpdateCodeSegment(index); + throw new IllegalStateException(); + } + } new LogUpdateCodeSegment(index); } }