RFR: JDK-8261422: Adjust problematic String.format calls in jdk/internal/util/Preconditions.java outOfBoundsMessage

Brian Burkhalter bpb at openjdk.java.net
Fri Feb 12 23:51:40 UTC 2021


On Tue, 9 Feb 2021 16:04:02 GMT, stefan-zobel <github.com+18482851+stefan-zobel at 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


More information about the core-libs-dev mailing list