This PR proposes to make empty immutable lists always throw UOE on `removeFirst` and `removeLast`.
------------- Commit messages: - Make empty immutable lists always throw UOE on remove(F|L) Changes: https://git.openjdk.org/jdk/pull/18581/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18581&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8329089 Stats: 9 lines in 2 files changed: 9 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18581.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18581/head:pull/18581 PR: https://git.openjdk.org/jdk/pull/18581