File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
src/java.base/share/classes/java/lang Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -3660,16 +3660,6 @@ public boolean isEnum() {
3660
3660
this .getSuperclass () == java .lang .Enum .class ;
3661
3661
}
3662
3662
3663
- /** java.lang.Record.class */
3664
- private static final Class <?> JAVA_LANG_RECORD_CLASS = javaLangRecordClass ();
3665
- private static Class <?> javaLangRecordClass () {
3666
- try {
3667
- return Class .forName0 ("java.lang.Record" , false , null , null );
3668
- } catch (ClassNotFoundException e ) {
3669
- throw new InternalError ("should not reach here" , e );
3670
- }
3671
- }
3672
-
3673
3663
/**
3674
3664
* Returns {@code true} if and only if this class is a record class.
3675
3665
*
@@ -3686,7 +3676,7 @@ private static Class<?> javaLangRecordClass() {
3686
3676
* @since 16
3687
3677
*/
3688
3678
public boolean isRecord () {
3689
- return getSuperclass () == JAVA_LANG_RECORD_CLASS && isRecord0 ();
3679
+ return getSuperclass () == java . lang . Record . class && isRecord0 ();
3690
3680
}
3691
3681
3692
3682
// Fetches the factory for reflective objects
You can’t perform that action at this time.
0 commit comments