mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8216189: Remove Klass::compute_is_subtype_of
Reviewed-by: hseigel, jiangli
This commit is contained in:
parent
53f83ebdf9
commit
13fcbf9d8f
10 changed files with 9 additions and 56 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -1199,14 +1199,6 @@ GrowableArray<Klass*>* InstanceKlass::compute_secondary_supers(int num_extra_slo
|
|||
}
|
||||
}
|
||||
|
||||
bool InstanceKlass::compute_is_subtype_of(Klass* k) {
|
||||
if (k->is_interface()) {
|
||||
return implements_interface(k);
|
||||
} else {
|
||||
return Klass::compute_is_subtype_of(k);
|
||||
}
|
||||
}
|
||||
|
||||
bool InstanceKlass::implements_interface(Klass* k) const {
|
||||
if (this == k) return true;
|
||||
assert(k->is_interface(), "should be an interface class");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue