Skip to content

Commit abffac3

Browse files
authored
Merge pull request #22072 from JasonFengJ9/jdk26access
JDK26 JavaLangAccess adds decodeASCII(), removes uncheckedDecodeASCII()
2 parents 877cec2 + 2f39b45 commit abffac3

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

jcl/src/java.base/share/classes/java/lang/Access.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -494,19 +494,19 @@ public void addExports(Module fromModule, String pkg) {
494494
/*[ENDIF] JAVA_SPEC_VERSION >= 16 */
495495

496496
/*[IF JAVA_SPEC_VERSION >= 17]*/
497-
/*[IF (JAVA_SPEC_VERSION >= 25) & !INLINE-TYPES]*/
497+
/*[IF (JAVA_SPEC_VERSION == 25) & !INLINE-TYPES]*/
498498
public int uncheckedDecodeASCII(byte[] srcBytes, int srcPos, char[] dstChars, int dstPos, int length) {
499-
/*[ELSE] (JAVA_SPEC_VERSION >= 25) & !INLINE-TYPES */
499+
/*[ELSE] (JAVA_SPEC_VERSION == 25) & !INLINE-TYPES */
500500
public int decodeASCII(byte[] srcBytes, int srcPos, char[] dstChars, int dstPos, int length) {
501-
/*[ENDIF] (JAVA_SPEC_VERSION >= 25) & !INLINE-TYPES */
501+
/*[ENDIF] (JAVA_SPEC_VERSION == 25) & !INLINE-TYPES */
502502
return String.decodeASCII(srcBytes, srcPos, dstChars, dstPos, length);
503503
}
504504

505-
/*[IF (JAVA_SPEC_VERSION >= 25) & !INLINE-TYPES]*/
505+
/*[IF (JAVA_SPEC_VERSION == 25) & !INLINE-TYPES]*/
506506
public void uncheckedInflateBytesToChars(byte[] srcBytes, int srcOffset, char[] dstChars, int dstOffset, int length) {
507-
/*[ELSE] (JAVA_SPEC_VERSION >= 25) & !INLINE-TYPES */
507+
/*[ELSE] (JAVA_SPEC_VERSION == 25) & !INLINE-TYPES */
508508
public void inflateBytesToChars(byte[] srcBytes, int srcOffset, char[] dstChars, int dstOffset, int length) {
509-
/*[ENDIF] (JAVA_SPEC_VERSION >= 25) & !INLINE-TYPES */
509+
/*[ENDIF] (JAVA_SPEC_VERSION == 25) & !INLINE-TYPES */
510510
StringLatin1.inflate(srcBytes, srcOffset, dstChars, dstOffset, length);
511511
}
512512

@@ -702,11 +702,11 @@ public char getUTF16Char(byte[] val, int index) {
702702
return StringUTF16.getChar(val, index);
703703
}
704704

705-
/*[IF (JAVA_SPEC_VERSION >= 25) & !INLINE-TYPES]*/
705+
/*[IF (JAVA_SPEC_VERSION == 25) & !INLINE-TYPES]*/
706706
public int uncheckedCountPositives(byte[] ba, int off, int len) {
707-
/*[ELSE] (JAVA_SPEC_VERSION >= 25) & !INLINE-TYPES */
707+
/*[ELSE] (JAVA_SPEC_VERSION == 25) & !INLINE-TYPES */
708708
public int countPositives(byte[] ba, int off, int len) {
709-
/*[ENDIF] (JAVA_SPEC_VERSION >= 25) & !INLINE-TYPES */
709+
/*[ENDIF] (JAVA_SPEC_VERSION == 25) & !INLINE-TYPES */
710710
return StringCoding.countPositives(ba, off, len);
711711
}
712712

0 commit comments

Comments
 (0)