<i18n dev> RFR: JDK-8285932 Implementation of JEP 430 String Templates (Preview) [v23]

Maurizio Cimadamore mcimadamore at openjdk.org
Wed Nov 16 22:30:32 UTC 2022


On Wed, 16 Nov 2022 20:33:50 GMT, Jim Laskey <jlaskey at openjdk.org> wrote:

>> Enhance the Java programming language with string templates, which are similar to string literals but contain embedded expressions. A string template is interpreted at run time by replacing each expression with the result of evaluating that expression, possibly after further validation and transformation. This is a [preview language feature and API](http://openjdk.java.net/jeps/12).
>
> Jim Laskey has updated the pull request incrementally with two additional commits since the last revision:
> 
>  - Requested changes #8
>  - Update StringTemplate javadoc

Marked as reviewed by mcimadamore (Reviewer).

src/java.base/share/classes/java/lang/template/StringTemplate.java line 34:

> 32: 
> 33: /**
> 34:  * {@link StringTemplate StringTemplates} is the run-time representation of a

Suggestion:

 * {@link StringTemplate StringTemplate} is the run-time representation of a

src/java.base/share/classes/java/lang/template/StringTemplate.java line 218:

> 216: 
> 217:     /**
> 218:      * Returns a StringTemplate as if constructed by invoking

Suggestion:

     * Returns a {@code StringTemplate} as if constructed by invoking

src/java.base/share/classes/java/lang/template/StringTemplate.java line 233:

> 231: 
> 232:     /**
> 233:      * Returns a StringTemplate with the given fragments and values.

Suggestion:

     * Returns a {@code StringTemplate} with the given fragments and values.

-------------

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


More information about the i18n-dev mailing list