srowen opened a new pull request #33594:
URL: https://github.com/apache/spark/pull/33594


   ### What changes were proposed in this pull request?
   
   Fix up some minor Java issues:
   
   - Some int*int multiplications that widen to long maybe could overflow
   - Unnecessarily non-static inner classes
   - Some tests "catch (AssertionError)" and do nothing
   - Manual array iteration vs very slightly faster/simpler foreach
   - Incorrect generic types that just happen to not cause a runtime error
   - Missed opportunities for try-close
   - Mutable enums
   - .. and a few other minor things
   
   ### Why are the changes needed?
   
   Some are minor but clear fixes; some may have a marginal perf impact or 
avoid a bug later. Also: maybe avoid future PRs to address these one by one.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   Existing tests


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