github-advanced-security[bot] commented on code in PR #20064:
URL: https://github.com/apache/druid/pull/20064#discussion_r3810716861
##########
multi-stage-query/src/test/java/org/apache/druid/msq/shuffle/output/ByteChunksInputStreamTest.java:
##########
@@ -46,11 +44,11 @@
int c;
while ((c = in.read()) != -1) {
- MatcherAssert.assertThat("InputStream#read contract", c,
Matchers.greaterThanOrEqualTo(0));
+ Assertions.assertTrue(c >= 0, "InputStream#read contract");
Review Comment:
## CodeQL / Useless comparison test
Test is always true, because of [this condition](1).
[Show more
details](https://github.com/apache/druid/security/code-scanning/11882)
##########
multi-stage-query/src/test/java/org/apache/druid/msq/shuffle/output/ByteChunksInputStreamTest.java:
##########
@@ -62,11 +60,11 @@
int c;
while ((c = in.read()) != -1) {
- MatcherAssert.assertThat("InputStream#read contract", c,
Matchers.greaterThanOrEqualTo(0));
+ Assertions.assertTrue(c >= 0, "InputStream#read contract");
Review Comment:
## CodeQL / Useless comparison test
Test is always true, because of [this condition](1).
[Show more
details](https://github.com/apache/druid/security/code-scanning/11883)
--
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]