On Wed, 28 Jan 2026 13:46:39 GMT, Eirik Bjørsnøs <[email protected]> wrote:
> Please review this PR which removes an `assert` from the default method > `Checksum::update(ByteBuffer)`. > > Since this is an interface, javac generates a synthetic inner class to > capture the `$assertionsDisabled` information. > > This is the only use of assert within default methods in `java.base`. > > I do not think it carries its weight in terms of the loading the generated > class, so I suggest we simply remove it. The method already returns when `pos > > limit`. > > Trivial cleanup, `noreg-cleanup`. This pull request has been closed without being integrated. ------------- PR: https://git.openjdk.org/jdk/pull/29466
