RFR: 8340493: Fix some Asserts failure messages [v4]

Weijun Wang weijun at openjdk.org
Thu Dec 19 12:33:40 UTC 2024


> `Asserts.assertNotEquals` shows "expected 12345 to not equal 12345" which sounds redundant, just say "expected not equals but was 12345".
> 
> `Asserts.assertEqualsByteArray` uses the words "expected... to equal...". Modify it to follow the `assertEquals` style ""expected... but was...".

Weijun Wang has updated the pull request incrementally with one additional commit since the last revision:

  fix usages

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/21101/files
  - new: https://git.openjdk.org/jdk/pull/21101/files/8f06ba16..0779ce07

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=21101&range=03
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=21101&range=02-03

  Stats: 24 lines in 6 files changed: 0 ins; 0 del; 24 mod
  Patch: https://git.openjdk.org/jdk/pull/21101.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/21101/head:pull/21101

PR: https://git.openjdk.org/jdk/pull/21101


More information about the core-libs-dev mailing list