dweiss commented on code in PR #15570:
URL: https://github.com/apache/lucene/pull/15570#discussion_r2690078252


##########
lucene/core/src/java/org/apache/lucene/util/compress/LZ4.java:
##########
@@ -111,7 +111,9 @@ public static int decompress(DataInput compressed, int 
decompressedLen, byte[] d
 
       // matchs
       final int matchDec = compressed.readShort() & 0xFFFF;
-      assert matchDec > 0;
+      if (matchDec == 0) {

Review Comment:
   Can we replace it with matchDec <= 0 to also cover the assertion that was 
there before?



-- 
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