On Wed, 15 May 2024 09:43:04 GMT, Maurizio Cimadamore <mcimadam...@openjdk.org> wrote:
>> Adam Sotona has updated the pull request incrementally with one additional >> commit since the last revision: >> >> applied the suggested changes > > src/java.base/share/classes/jdk/internal/classfile/impl/verifier/ParserVerifier.java > line 205: > >> 203: private void verifyAttribute(AttributedElement ae, Attribute<?> a, >> List<VerifyError> errors) { >> 204: int size = -1; >> 205: switch (a) { > > Maybe use a switch expression to set `size` where `default` yields -1? For better readability I've recently turned it from switch expression (yielding values pre-calculated in temporary locals) into explicit assignments to the `size` variable. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/16809#discussion_r1601349377