|
1 | 1 | /*
|
2 |
| - * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. |
| 2 | + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. |
3 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
4 | 4 | *
|
5 | 5 | * This code is free software; you can redistribute it and/or modify it
|
@@ -203,13 +203,13 @@ private static String outOfBoundsMessage(String checkKind, List<? extends Number
|
203 | 203 | // Switch to default if fewer or more arguments than required are supplied
|
204 | 204 | switch ((args.size() != argSize) ? "" : checkKind) {
|
205 | 205 | case "checkIndex":
|
206 |
| - return String.format("Index %d out of bounds for length %d", |
| 206 | + return String.format("Index %s out of bounds for length %s", |
207 | 207 | args.get(0), args.get(1));
|
208 | 208 | case "checkFromToIndex":
|
209 |
| - return String.format("Range [%d, %d) out of bounds for length %d", |
| 209 | + return String.format("Range [%s, %s) out of bounds for length %s", |
210 | 210 | args.get(0), args.get(1), args.get(2));
|
211 | 211 | case "checkFromIndexSize":
|
212 |
| - return String.format("Range [%d, %<d + %d) out of bounds for length %d", |
| 212 | + return String.format("Range [%s, %<s + %s) out of bounds for length %s", |
213 | 213 | args.get(0), args.get(1), args.get(2));
|
214 | 214 | default:
|
215 | 215 | return String.format("Range check failed: %s %s", checkKind, args);
|
|
0 commit comments