From e7f5d528a96359dd7c822865f3096f49131dc05e Mon Sep 17 00:00:00 2001 From: vadym Date: Thu, 6 Aug 2020 23:17:10 -0700 Subject: [PATCH] 1. methods list --- .../main/java/io/github/chronosx88/yggdrasil/MainActivity.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/github/chronosx88/yggdrasil/MainActivity.kt b/app/src/main/java/io/github/chronosx88/yggdrasil/MainActivity.kt index 3322dcc..3ddd27a 100644 --- a/app/src/main/java/io/github/chronosx88/yggdrasil/MainActivity.kt +++ b/app/src/main/java/io/github/chronosx88/yggdrasil/MainActivity.kt @@ -141,11 +141,12 @@ class MainActivity : AppCompatActivity() { } val c: Class<*> = dummy.Dummy::class.java val methods: Array = c.declaredMethods + Log.d(TAG,"Getting dummy.Dummy class methods list") if(methods.isEmpty()){ Log.d(TAG,"No class methods found in dummy.Dummy") } else { - for (i in methods.indices) { - Log.d(TAG, "The method is: " + methods[i].toString()) + for (m in methods) { + Log.d(TAG, "The method is: " + m.toString()) } } }