@@ -302,10 +302,10 @@ public interface JavaLangAccess {
302302
303303 /**
304304 * Count the number of leading positive bytes in the range.
305- * <p>
306- * <b>WARNING: This method does not perform any bound checks.</b>
305+ *
306+ * @implSpec Implementations of this method must perform bounds checks.
307307 */
308- int uncheckedCountPositives (byte [] ba , int off , int len );
308+ int countPositives (byte [] ba , int off , int len );
309309
310310 /**
311311 * Count the number of leading non-zero ascii chars in the String.
@@ -390,20 +390,20 @@ public interface JavaLangAccess {
390390 /**
391391 * Inflated copy from {@code byte[]} to {@code char[]}, as defined by
392392 * {@code StringLatin1.inflate}.
393- * <p>
394- * <b>WARNING: This method does not perform any bound checks.</b>
393+ *
394+ * @implSpec Implementations of this method must perform bounds checks.
395395 */
396- void uncheckedInflateBytesToChars (byte [] src , int srcOff , char [] dst , int dstOff , int len );
396+ void inflateBytesToChars (byte [] src , int srcOff , char [] dst , int dstOff , int len );
397397
398398 /**
399399 * Decodes ASCII from the source byte array into the destination
400400 * char array.
401- * <p>
402- * <b>WARNING: This method does not perform any bound checks.</b>
401+ *
402+ * @implSpec Implementations of this method must perform bounds checks.
403403 *
404404 * @return the number of bytes successfully decoded, at most len
405405 */
406- int uncheckedDecodeASCII (byte [] src , int srcOff , char [] dst , int dstOff , int len );
406+ int decodeASCII (byte [] src , int srcOff , char [] dst , int dstOff , int len );
407407
408408 /**
409409 * Returns the initial `System.in` to determine if it is replaced
0 commit comments