gaborgsomogyi commented on PR #28012:
URL: https://github.com/apache/flink/pull/28012#issuecomment-4325808968

   I think the following 2 blocks can be flipped (`lazyInitialize` can come 
after the if confition) to cover an edge case. We can say 100% sure we've not 
read anything when `position >= contentLength`. We don't need any stream to say 
it, right? If you agree then there are multiple occasions
   ```
               lazyInitialize();
               if (position >= contentLength) {
                   return -1;
               }
   ```
   


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

Reply via email to