@@ -411,14 +411,24 @@ public void blockedOn(Interruptible interruptible) {
411
411
Thread .blockedOn (interruptible );
412
412
/*[ENDIF] JAVA_SPEC_VERSION >= 23 */
413
413
}
414
+
415
+ /*[IF (JAVA_SPEC_VERSION >= 25) & !INLINE-TYPES]*/
416
+ public byte [] uncheckedGetBytesNoRepl (String str , Charset charset ) throws CharacterCodingException {
417
+ /*[ELSE] (JAVA_SPEC_VERSION >= 25) & !INLINE-TYPES */
414
418
public byte [] getBytesNoRepl (String str , Charset charset ) throws CharacterCodingException {
419
+ /*[ENDIF] (JAVA_SPEC_VERSION >= 25) & !INLINE-TYPES */
415
420
/*[IF JAVA_SPEC_VERSION < 17]*/
416
421
return StringCoding .getBytesNoRepl (str , charset );
417
422
/*[ELSE] JAVA_SPEC_VERSION < 17 */
418
423
return String .getBytesNoRepl (str , charset );
419
424
/*[ENDIF] JAVA_SPEC_VERSION < 17 */
420
425
}
426
+
427
+ /*[IF (JAVA_SPEC_VERSION >= 25) & !INLINE-TYPES]*/
428
+ public String uncheckedNewStringNoRepl (byte [] bytes , Charset charset ) throws CharacterCodingException {
429
+ /*[ELSE] (JAVA_SPEC_VERSION >= 25) & !INLINE-TYPES */
421
430
public String newStringNoRepl (byte [] bytes , Charset charset ) throws CharacterCodingException {
431
+ /*[ENDIF] (JAVA_SPEC_VERSION >= 25) & !INLINE-TYPES */
422
432
/*[IF JAVA_SPEC_VERSION < 17]*/
423
433
return StringCoding .newStringNoRepl (bytes , charset );
424
434
/*[ELSE] JAVA_SPEC_VERSION < 17 */
@@ -484,11 +494,19 @@ public void addExports(Module fromModule, String pkg) {
484
494
/*[ENDIF] JAVA_SPEC_VERSION >= 16 */
485
495
486
496
/*[IF JAVA_SPEC_VERSION >= 17]*/
497
+ /*[IF (JAVA_SPEC_VERSION >= 25) & !INLINE-TYPES]*/
498
+ public int uncheckedDecodeASCII (byte [] srcBytes , int srcPos , char [] dstChars , int dstPos , int length ) {
499
+ /*[ELSE] (JAVA_SPEC_VERSION >= 25) & !INLINE-TYPES */
487
500
public int decodeASCII (byte [] srcBytes , int srcPos , char [] dstChars , int dstPos , int length ) {
501
+ /*[ENDIF] (JAVA_SPEC_VERSION >= 25) & !INLINE-TYPES */
488
502
return String .decodeASCII (srcBytes , srcPos , dstChars , dstPos , length );
489
503
}
490
504
505
+ /*[IF (JAVA_SPEC_VERSION >= 25) & !INLINE-TYPES]*/
506
+ public void uncheckedInflateBytesToChars (byte [] srcBytes , int srcOffset , char [] dstChars , int dstOffset , int length ) {
507
+ /*[ELSE] (JAVA_SPEC_VERSION >= 25) & !INLINE-TYPES */
491
508
public void inflateBytesToChars (byte [] srcBytes , int srcOffset , char [] dstChars , int dstOffset , int length ) {
509
+ /*[ENDIF] (JAVA_SPEC_VERSION >= 25) & !INLINE-TYPES */
492
510
StringLatin1 .inflate (srcBytes , srcOffset , dstChars , dstOffset , length );
493
511
}
494
512
@@ -563,7 +581,11 @@ public int getCharsUTF16(long i, int index, byte[] buf) {
563
581
/*[ENDIF] JAVA_SPEC_VERSION < 25 */
564
582
565
583
@ Override
584
+ /*[IF (JAVA_SPEC_VERSION >= 25) & !INLINE-TYPES]*/
585
+ public void uncheckedPutCharUTF16 (byte [] val , int index , int c ) {
586
+ /*[ELSE] (JAVA_SPEC_VERSION >= 25) & !INLINE-TYPES */
566
587
public void putCharUTF16 (byte [] val , int index , int c ) {
588
+ /*[ENDIF] (JAVA_SPEC_VERSION >= 25) & !INLINE-TYPES */
567
589
StringUTF16 .putChar (val , index , c );
568
590
}
569
591
@@ -601,7 +623,11 @@ public void exit(int status) {
601
623
}
602
624
/*[ENDIF] (JAVA_SPEC_VERSION < 25) | INLINE-TYPES */
603
625
626
+ /*[IF (JAVA_SPEC_VERSION >= 25) & !INLINE-TYPES]*/
627
+ public int uncheckedEncodeASCII (char [] sa , int sp , byte [] da , int dp , int len ) {
628
+ /*[ELSE] (JAVA_SPEC_VERSION >= 25) & !INLINE-TYPES */
604
629
public int encodeASCII (char [] sa , int sp , byte [] da , int dp , int len ) {
630
+ /*[ENDIF] (JAVA_SPEC_VERSION >= 25) & !INLINE-TYPES */
605
631
return StringCoding .implEncodeAsciiArray (sa , sp , da , dp , len );
606
632
}
607
633
/*[ENDIF] JAVA_SPEC_VERSION >= 17 */
@@ -668,11 +694,19 @@ public InputStream initialSystemIn() {
668
694
}
669
695
670
696
/*[IF JAVA_SPEC_VERSION >= 21]*/
697
+ /*[IF (JAVA_SPEC_VERSION >= 25) & !INLINE-TYPES]*/
698
+ public char uncheckedGetUTF16Char (byte [] val , int index ) {
699
+ /*[ELSE] (JAVA_SPEC_VERSION >= 25) & !INLINE-TYPES */
671
700
public char getUTF16Char (byte [] val , int index ) {
701
+ /*[ENDIF] (JAVA_SPEC_VERSION >= 25) & !INLINE-TYPES */
672
702
return StringUTF16 .getChar (val , index );
673
703
}
674
704
705
+ /*[IF (JAVA_SPEC_VERSION >= 25) & !INLINE-TYPES]*/
706
+ public int uncheckedCountPositives (byte [] ba , int off , int len ) {
707
+ /*[ELSE] (JAVA_SPEC_VERSION >= 25) & !INLINE-TYPES */
675
708
public int countPositives (byte [] ba , int off , int len ) {
709
+ /*[ENDIF] (JAVA_SPEC_VERSION >= 25) & !INLINE-TYPES */
676
710
return StringCoding .countPositives (ba , off , len );
677
711
}
678
712
@@ -835,7 +869,11 @@ public int classFileFormatVersion(Class<?> c) {
835
869
836
870
/*[IF JAVA_SPEC_VERSION >= 24]*/
837
871
@ Override
872
+ /*[IF (JAVA_SPEC_VERSION >= 25) & !INLINE-TYPES]*/
873
+ public Object uncheckedStringConcat1 (String [] constants ) {
874
+ /*[ELSE] (JAVA_SPEC_VERSION >= 25) & !INLINE-TYPES */
838
875
public Object stringConcat1 (String [] constants ) {
876
+ /*[ENDIF] (JAVA_SPEC_VERSION >= 25) & !INLINE-TYPES */
839
877
return new StringConcatHelper .Concat1 (constants );
840
878
}
841
879
0 commit comments