Integrated: 8337457: Redundant Math.round call in AquaProgressBarUI#getStringPlacement
Prasanta Sadhukhan
psadhukhan at openjdk.org
Thu Aug 1 03:38:40 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
This pull request has now been integrated.
Changeset: 65646b5f
Author: Prasanta Sadhukhan <psadhukhan at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/65646b5f81279a7fcef3ea04ef9894cf66f77a5a
Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
8337457: Redundant Math.round call in AquaProgressBarUI#getStringPlacement
Reviewed-by: azvegint
-------------
PR: https://git.openjdk.org/jdk/pull/20400
More information about the client-libs-dev
mailing list