Skip to content
Permalink
Browse files
Fixing assertion
git-svn-id: https://svn.apache.org/repos/asf/activemq/activemq-protobuf/trunk@746267 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
chirino committed Feb 20, 2009
1 parent dbac5f8 commit e56d385922e7036e85da676f22d481e397fa63b3
Showing 1 changed file with 1 addition and 1 deletion.
@@ -18,7 +18,7 @@ static public Buffer toUnframedBuffer(MessageBuffer message) {
CodedOutputStream output = new CodedOutputStream(baos);
message.writeUnframed(output);
Buffer rc = baos.toBuffer();
assert rc.length != size : "Did not write as much data as expected.";
assert rc.length == size : "Did not write as much data as expected.";
return rc;
} catch (IOException e) {
throw new RuntimeException("Serializing to a byte array threw an IOException " + "(should never happen).", e);

0 comments on commit e56d385

Please sign in to comment.