Skip to content

Commit c0c59b9

Browse files
removing unecessary assert
1 parent 1822f95 commit c0c59b9

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

  • artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/protocol/amqp/util

artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/protocol/amqp/util/AbstractMapPersister.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,6 @@ public void decode(ActiveMQBuffer buffer, T decodingObject) {
200200
}
201201
}
202202

203-
assert endPosition == buffer.readerIndex();
204-
205203
if (endPosition != buffer.readerIndex()) {
206204
throw new IllegalStateException("Buffer position mismatch after decode: expected " + endPosition + " but at " + buffer.readerIndex() + " (consumed " + (buffer.readerIndex() - initialPosition) + " bytes, expected " + size + ")");
207205
}

0 commit comments

Comments
 (0)