jiridanek commented on a change in pull request #1:
URL: https://github.com/apache/qpid-protonj2/pull/1#discussion_r695171323



##########
File path: 
protonj2/src/main/java/org/apache/qpid/protonj2/codec/encoders/AbstractDescribedMapTypeEncoder.java
##########
@@ -156,8 +156,8 @@ public void writeArray(ProtonBuffer buffer, EncoderState 
state, Object[] values)
         // Move back and write the size
         final int writeSize = buffer.getWriteIndex() - startIndex - 
Integer.BYTES;
 
-        if (writeSize > Integer.MAX_VALUE) {
-            throw new IllegalArgumentException("Cannot encode given array, 
encoded size to large: " + writeSize);
+        if (writeSize > Integer.MAX_VALUE) {  // same, always false

Review comment:
       I've rebased out the comment; do you think the "condition is always 
false" is worth addressing somehow? I would think so, given the if check 
directly before it...




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to