8232881: Remove unnecessary InstanceKlass::casts

Reviewed-by: coleenp
This commit is contained in:
Claes Redestad 2019-10-23 18:34:25 +02:00
parent bbc4e0d999
commit 36ac846d35
6 changed files with 14 additions and 14 deletions

View file

@ -146,7 +146,7 @@ class HierarchyVisitor : StackObj {
return interface_index() >= number_of_interfaces();
}
InstanceKlass* interface_at(int index) {
return InstanceKlass::cast(_class->local_interfaces()->at(index));
return _class->local_interfaces()->at(index);
}
InstanceKlass* next_super() { return _class->java_super(); }
InstanceKlass* next_interface() {