Some minor nitpicks.

This commit is contained in:
David Renshaw 2015-06-13 15:03:20 -07:00
parent 87b15caec9
commit 7f13ed114a

View file

@ -147,8 +147,7 @@ public final class Serialize {
return new MessageReader(segmentSlices, options); return new MessageReader(segmentSlices, options);
} }
public static long computeSerializedSizeInWords(MessageBuilder message) public static long computeSerializedSizeInWords(MessageBuilder message) {
{
final ByteBuffer[] segments = message.getSegmentsForOutput(); final ByteBuffer[] segments = message.getSegmentsForOutput();
// From the capnproto documentation: // From the capnproto documentation:
@ -169,7 +168,7 @@ public final class Serialize {
bytes += s.limit(); bytes += s.limit();
} }
return bytes / 8; return bytes / Constants.BYTES_PER_WORD;
} }
public static void write(WritableByteChannel outputChannel, public static void write(WritableByteChannel outputChannel,