am 765d7c30: am ba6783b6: Merge "Update getExportedPropertyMethods to new reflection API"

* commit '765d7c304871044eaaa92974c295b52faa6244b0':
  Update getExportedPropertyMethods to new reflection API
This commit is contained in:
Mathieu Chartier
2015-04-21 23:42:42 +00:00
committed by Android Git Automerger

View File

@@ -1040,14 +1040,10 @@ public class ViewDebug {
return methods;
}
final ArrayList<Method> declaredMethods = new ArrayList();
klass.getDeclaredMethodsUnchecked(false, declaredMethods);
methods = klass.getDeclaredMethodsUnchecked(false);
final ArrayList<Method> foundMethods = new ArrayList<Method>();
final int count = declaredMethods.size();
for (int i = 0; i < count; i++) {
final Method method = declaredMethods.get(i);
for (final Method method : methods) {
// Ensure the method return and parameter types can be resolved.
try {
method.getReturnType();