mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8302664: Fix several incorrect usages of Preconditions.checkFromIndexSize
Reviewed-by: djelinski, dfuchs, alanb
This commit is contained in:
parent
6b082fb3c6
commit
43cf8b3d80
8 changed files with 19 additions and 19 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2002, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2002, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -9687,7 +9687,7 @@ class Character implements java.io.Serializable, Comparable<Character>, Constabl
|
|||
* @since 1.5
|
||||
*/
|
||||
public static int codePointCount(char[] a, int offset, int count) {
|
||||
Objects.checkFromIndexSize(count, offset, a.length);
|
||||
Objects.checkFromIndexSize(offset, count, a.length);
|
||||
return codePointCountImpl(a, offset, count);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue