rkhachatryan commented on a change in pull request #13648:
URL: https://github.com/apache/flink/pull/13648#discussion_r508353713
##########
File path:
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/PipelinedSubpartition.java
##########
@@ -259,9 +260,10 @@ BufferAndBacklog pollBuffer() {
}
while (!buffers.isEmpty()) {
- BufferConsumer bufferConsumer =
buffers.peek().getBufferConsumer();
+ BufferConsumerWithPartialRecordLength
bufferConsumerWithPartialRecordLength = buffers.peek();
+ BufferConsumer bufferConsumer =
requireNonNull(bufferConsumerWithPartialRecordLength).getBufferConsumer();
Review comment:
I think this IDE warning doesn't make sense here so.
I'd prefer to alter IDE behavior rather than code (e.g. by adding
`@SuppressWarnings("ConstantConditions")`).
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]