Remove usage of optimized reflection getters

As a part of internal libcore API cleanup some of the functions
previously exposed are getting removed from public surface.

This CL replaces usage of art optimized reflection methods with default
ones.

Bug: 154796679
Test: m droid
Change-Id: I14cfa4af95e2d4b34cee02decaec33d928c25b73
This commit is contained in:
Nikita Iashchenko
2021-04-20 23:10:32 +00:00
parent 9026f587b7
commit a643441aec

View File

@@ -1464,8 +1464,8 @@ public class ViewDebug {
PropertyInfo<ExportedProperty, ?>[] properties = sExportProperties.get(klass);
if (properties == null) {
properties = convertToPropertyInfos(klass.getDeclaredMethodsUnchecked(false),
klass.getDeclaredFieldsUnchecked(false), ExportedProperty.class);
properties = convertToPropertyInfos(klass.getDeclaredMethods(),
klass.getDeclaredFields(), ExportedProperty.class);
map.put(klass, properties);
}
return properties;