On Tue, 9 Feb 2021 16:04:02 GMT, stefan-zobel <github.com+18482851+stefan-zo...@openjdk.org> wrote:
>> I haven't written the class Preconditions.java, this question should >> probably go to the authors . >> I found the String.format syntax a bit unusual, should this be rewritten ? > > AFAIK, Preconditions was introduced in > https://bugs.openjdk.java.net/browse/JDK-8155794 It looks like java/util/Objects/CheckIndex should adequately cover this change. ------------- PR: https://git.openjdk.java.net/jdk/pull/2483