mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8286298: Remove unused methods in sun.invoke.util.VerifyType
Reviewed-by: bpb, alanb, mchung
This commit is contained in:
parent
3462190965
commit
3fa1c40439
2 changed files with 6 additions and 89 deletions
|
@ -30,7 +30,6 @@ import jdk.internal.vm.annotation.ForceInline;
|
|||
import jdk.internal.vm.annotation.Stable;
|
||||
import sun.invoke.util.ValueConversions;
|
||||
import sun.invoke.util.VerifyAccess;
|
||||
import sun.invoke.util.VerifyType;
|
||||
import sun.invoke.util.Wrapper;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
@ -629,12 +628,14 @@ sealed class DirectMethodHandle extends MethodHandle {
|
|||
private static final LambdaForm[] ACCESSOR_FORMS
|
||||
= new LambdaForm[afIndex(AF_LIMIT, false, 0)];
|
||||
static int ftypeKind(Class<?> ftype) {
|
||||
if (ftype.isPrimitive())
|
||||
if (ftype.isPrimitive()) {
|
||||
return Wrapper.forPrimitiveType(ftype).ordinal();
|
||||
else if (VerifyType.isNullReferenceConversion(Object.class, ftype))
|
||||
} else if (ftype.isInterface() || ftype.isAssignableFrom(Object.class)) {
|
||||
// retyping can be done without a cast
|
||||
return FT_UNCHECKED_REF;
|
||||
else
|
||||
} else {
|
||||
return FT_CHECKED_REF;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue