On Mon, 31 Oct 2022 07:14:45 GMT, Rémi Forax <fo...@openjdk.org> wrote:

>> Actually, `StringTemplate::interpolate` is fine, as this method takes two 
>> parameters, whereas the instance method only takes an implicit `this` 
>> parameter.
>> 
>> The instance method is only assignable to `Function<StringTemplate, String>` 
>> or `Supplier<String>`, and the static method is only assignable to 
>> `BiFunction<List<String>, List<Object>, String>`.
>
> Ok, get it.
> I still see not reason to have this method being public given that this is 
> equivalent to `Template.of(fragments, values).interpolate()`.
> 
> The less methods in the API, the better.

Noted

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

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

Reply via email to