Mercurial > hg > Database > Alice
changeset 100:b01fb5090e28 working
add default code to each case statements
author | kazz <kazz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 28 Jun 2012 01:50:29 +0900 |
parents | e3b1f812478c |
children | 9e4784d8b727 |
files | src/alice/daemon/OutboundTcpConnection.java src/alice/datasegment/Receiver.java |
diffstat | 2 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/alice/daemon/OutboundTcpConnection.java Thu Jun 28 01:43:56 2012 +0900 +++ b/src/alice/daemon/OutboundTcpConnection.java Thu Jun 28 01:50:29 2012 +0900 @@ -34,6 +34,8 @@ case FINISH: System.exit(0); return; + default: + break; } CommandMessage cmdMsg = convert(cmd); ByteBuffer buffer = ByteBuffer.wrap(msgpack.write(cmdMsg));
--- a/src/alice/datasegment/Receiver.java Thu Jun 28 01:43:56 2012 +0900 +++ b/src/alice/datasegment/Receiver.java Thu Jun 28 01:50:29 2012 +0900 @@ -43,6 +43,8 @@ case TAKE: ids.take(this, managerKey, key, index); break; + default: + break; } ids.setKey(); } @@ -60,6 +62,8 @@ case TAKE: ids.take(this, key, index); break; + default: + break; } ids.setKey(); }