On Fri, 18 Sep 2020 08:53:34 GMT, Pavel Rappo <pra...@openjdk.org> wrote:
>> src/java.base/share/classes/java/lang/String.java line 3186: >> >>> 3184: * caller. >>> 3185: * >>> 3186: * @param f a function to apply >> >> Shouldn't this be "_the_ function to apply"? Grep for other instance of >> "function to apply" in javadocs :) > > I grepped that before pushing and the results were inconclusive. For example, > compare the below fragments from the same > file: > /** > ... > * @param mapper the mapping function to apply to each element > ... > */ > public static <T> > Collector<T, ?, LongSummaryStatistics> summarizingLong(ToLongFunction<? > super T> mapper) > /** > ... > * @param mapper a mapping function to apply to each element > ... > */ > public static <T> > Collector<T, ?, DoubleSummaryStatistics> > summarizingDouble(ToDoubleFunction<? super T> mapper) Hm! Better to defer to native speakers then... ------------- PR: https://git.openjdk.java.net/jdk/pull/238