> `NoRepl`-suffixed `String` methods denote methods that do not replace invalid > characters, but throw `CharacterCodingException` on encounter. This behavior > cannot easily be derived from the method footprints, has been a source of > confusion for maintainers, and is not uniformly adopted, e.g., > `newStringUTF8NoRepl()` and `getBytesUTF8NoRepl()` does *not* throw `CCE`. > This PR removes `NoRepl` suffix from method names and consistently uses > `throws CCE` in method footprints. (b4845109e18 passes `tier1,2`.)
Volkan Yazici has updated the pull request incrementally with two additional commits since the last revision: - Simplify added null checks - Avoid code duplication by sprinkling some generics magic ------------- Changes: - all: https://git.openjdk.org/jdk/pull/26413/files - new: https://git.openjdk.org/jdk/pull/26413/files/1fb8582e..f536a341 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=26413&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=26413&range=01-02 Stats: 325 lines in 1 file changed: 77 ins; 213 del; 35 mod Patch: https://git.openjdk.org/jdk/pull/26413.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/26413/head:pull/26413 PR: https://git.openjdk.org/jdk/pull/26413