On Tue, 17 Jan 2023 19:24:09 GMT, Naoto Sato <na...@openjdk.org> wrote:
>> This PR implements _JEP 413: Code Snippets in Java API Documentation_ for >> [java.text.MessageFormat](https://docs.oracle.com/en/java/javase/19/docs/api/java.base/java/text/class-use/MessageFormat.html). >> >> Code examples using <pre> ... </pre> blocks are replaced with the @ snippet >> syntax where applicable. > > src/java.base/share/classes/java/text/MessageFormat.java line 336: > >> 334: * String forParsing = "x, y, z"; >> 335: * Object[] objs = mf.parse(forParsing, new ParsePosition(0)); >> 336: * // result now equals {new String("z")} > > I believe this `result` was meant for `objs`. Ah, this PR is already `/integated`. You can fix it at a later time. ------------- PR: https://git.openjdk.org/jdk/pull/12001