On Mon, 31 Oct 2022 15:51:23 GMT, Rémi Forax <fo...@openjdk.org> wrote:
>> Actually instance interpolate() is the most important method. Each synthetic >> StringTemplate gets a specialized interpolate providing performance >> equivalent to string concat. And, a good percentage of processors will work >> with the result of interpolate to produce result. Ex. `StringProcessor STR = >> st -> st.interpolate();` and`TemplateProcessor<JSONObject> JSON = st -> new >> JSONObject(st.interpolate());` > > Interesting ! > I believe the javadoc should mention that. Will add ------------- PR: https://git.openjdk.org/jdk/pull/10889