LuciferYang opened a new pull request, #45068:
URL: https://github.com/apache/spark/pull/45068

   ### What changes were proposed in this pull request?
   The proposed changes in this pr involve refactoring the `refill()` method in 
the `NioBufferedFileInputStream` class to `isExhausted()`. All calls to 
`!refill()` within the class have been updated to call `isExhausted()` instead.
   
   ### Why are the changes needed?
   The changes are needed to improve the readability and understandability of 
the code. Currently, the `refill()` method in `NioBufferedFileInputStream` is 
always invoked in a negated context (`!refill()`), which can be confusing and 
counter-intuitive. 
   
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   
   ### How was this patch tested?
   Pass GitHub Actions
   
   
   ### Was this patch authored or co-authored using generative AI tooling?
   No
   


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