@@ -636,7 +636,6 @@ public void freeMemory(long address) {
636
636
* @see #getInt(Object, long)
637
637
*/
638
638
@ ForceInline
639
- @ SuppressWarnings ("preview" )
640
639
public long objectFieldOffset (Field f ) {
641
640
if (f == null ) {
642
641
throw new NullPointerException ();
@@ -646,7 +645,7 @@ public long objectFieldOffset(Field f) {
646
645
throw new UnsupportedOperationException ("can't get field offset on a hidden class: " + f );
647
646
}
648
647
if (declaringClass .isRecord ()) {
649
- throw new UnsupportedOperationException ("can't get field offset on a record (preview) : " + f );
648
+ throw new UnsupportedOperationException ("can't get field offset on a record class : " + f );
650
649
}
651
650
return theInternalUnsafe .objectFieldOffset (f );
652
651
}
@@ -669,7 +668,6 @@ public long objectFieldOffset(Field f) {
669
668
* @see #getInt(Object, long)
670
669
*/
671
670
@ ForceInline
672
- @ SuppressWarnings ("preview" )
673
671
public long staticFieldOffset (Field f ) {
674
672
if (f == null ) {
675
673
throw new NullPointerException ();
@@ -679,7 +677,7 @@ public long staticFieldOffset(Field f) {
679
677
throw new UnsupportedOperationException ("can't get field offset on a hidden class: " + f );
680
678
}
681
679
if (declaringClass .isRecord ()) {
682
- throw new UnsupportedOperationException ("can't get field offset on a record (preview) : " + f );
680
+ throw new UnsupportedOperationException ("can't get field offset on a record class : " + f );
683
681
}
684
682
return theInternalUnsafe .staticFieldOffset (f );
685
683
}
@@ -695,7 +693,6 @@ public long staticFieldOffset(Field f) {
695
693
* this class.
696
694
*/
697
695
@ ForceInline
698
- @ SuppressWarnings ("preview" )
699
696
public Object staticFieldBase (Field f ) {
700
697
if (f == null ) {
701
698
throw new NullPointerException ();
@@ -705,7 +702,7 @@ public Object staticFieldBase(Field f) {
705
702
throw new UnsupportedOperationException ("can't get base address on a hidden class: " + f );
706
703
}
707
704
if (declaringClass .isRecord ()) {
708
- throw new UnsupportedOperationException ("can't get base address on a record (preview) : " + f );
705
+ throw new UnsupportedOperationException ("can't get base address on a record class : " + f );
709
706
}
710
707
return theInternalUnsafe .staticFieldBase (f );
711
708
}
0 commit comments