RFR: 8337457: Redundant Math.round call in AquaProgressBarUI#getStringPlacement
Alexander Zvegintsev
azvegint at openjdk.org
Wed Jul 31 16:10:31 UTC 2024
On Wed, 31 Jul 2024 07:12:35 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
> Since Math.round with integer argument returns the same value, and also since all arguments and calculations in the AquaProgressBarUI#getStringPlacement are integer arithmetic, Math.round is redundant and can be removed
Marked as reviewed by azvegint (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/20400#pullrequestreview-2210595169
More information about the client-libs-dev
mailing list