File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
java.base/src/main/java/java/lang Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -74,10 +74,6 @@ public boolean isArray() {
74
74
return dims .intValue () > 0 || CompilerIntrinsics .isPrimArray (typeId );
75
75
}
76
76
77
- public boolean isPrimitive () {
78
- return CompilerIntrinsics .isPrimitive (CompilerIntrinsics .getTypeIdFromClass ((Class <?>)(Object )this ));
79
- }
80
-
81
77
public Class <? super T > getSuperclass () {
82
78
type_id typeId = CompilerIntrinsics .getTypeIdFromClass ((Class <?>)(Object )this );
83
79
if (CompilerIntrinsics .isJavaLangObject (typeId ) || CompilerIntrinsics .isPrimitive (typeId ) || CompilerIntrinsics .isInterface (typeId )) {
Original file line number Diff line number Diff line change @@ -230,6 +230,11 @@ public Class<?> getNestHost() {
230
230
return nestHost ;
231
231
}
232
232
233
+ @ Replace
234
+ public boolean isPrimitive () {
235
+ return (modifiers & (1 << 17 )) != 0 ;
236
+ }
237
+
233
238
// todo: @Replace public Class<?> arrayType() { ... }
234
239
// todo: @Replace public Class<?> componentType() { ... }
235
240
// todo: @Remove private final Class<?> componentType;
You can’t perform that action at this time.
0 commit comments