On Thu, 10 Feb 2022 14:04:01 GMT, Jaikiran Pai <j...@openjdk.org> wrote:
> Hello Joe, would it be better to use the new syntax for `instanceof` here to > avoid the subsequent cast? > > ``` > else if (value instanceof Enum<?> v) > .... > return toSourceString(v); > ``` Fair point; updated in subsequent push. Thanks. ------------- PR: https://git.openjdk.java.net/jdk/pull/7418