RFR: 8273907: Cleanup redundant Math.max/min calls in DefaultHighlighter

Andrey Turbanov github.com+741251+turbanoff at openjdk.java.net
Thu Sep 16 19:14:57 UTC 2021


This calls are redundant, because order of `p0` and `p1` is checked in method pre-conditions.
Checks were added under [JDK-6771184](https://bugs.openjdk.java.net/browse/JDK-6771184) - https://github.com/openjdk/jdk/commit/79ed0e75ceeb

-------------

Commit messages:
 - [PATCH] Avoid redundant Math.min/Math.max calls in DefaultHighlighter

Changes: https://git.openjdk.java.net/jdk/pull/5542/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=5542&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8273907
  Stats: 3 lines in 1 file changed: 0 ins; 0 del; 3 mod
  Patch: https://git.openjdk.java.net/jdk/pull/5542.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/5542/head:pull/5542

PR: https://git.openjdk.java.net/jdk/pull/5542



More information about the client-libs-dev mailing list