<i18n dev> RFR: 8300308: java.text.MessageFormat has incorrect doc comment

Justin Lu jlu at openjdk.org
Tue Jan 17 22:55:45 UTC 2023

A code example for text.MessageFormat under the **Usage Information** section has a comment with the wrong variable name.

* Object[] objs = mf.parse(forParsing, new ParsePosition(0));
* // result now equals {new String("z")}

The name of the intended variable should be `objs`, not `result`


Commit messages:
 - Revert
 - Add missing semicolons
 - Swap to use snippet
 - Fix conflicts
 - Use correct variable (objs)

Changes: https://git.openjdk.org/jdk/pull/12054/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=12054&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8300308
  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/12054.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/12054/head:pull/12054

PR: https://git.openjdk.org/jdk/pull/12054

More information about the i18n-dev mailing list