From 086f24626cb42f27c4b9eaebc6061a480d122220 Mon Sep 17 00:00:00 2001 From: paulhu Date: Fri, 29 May 2020 00:29:22 +0800 Subject: [PATCH] Use Class#getSimpleName instead of KClass#getSimpleName KClass#getSimpleName need refer to kotlin-reflect.jar which need include it in Andorid.bp. However, it's not necessary to use KClass#getSimpleName but use Class#getSimpleName instead. Test: atest TetheringTests Bug: 157527499 Change-Id: I49bc336a276d30152402eba926cc583bc81e8e5c Merged-In: I49bc336a276d30152402eba926cc583bc81e8e5c --- .../networkstack/tethering/TetheringNotificationUpdaterTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tethering/tests/unit/src/com/android/networkstack/tethering/TetheringNotificationUpdaterTest.kt b/Tethering/tests/unit/src/com/android/networkstack/tethering/TetheringNotificationUpdaterTest.kt index 745468fdf3..7d5471f770 100644 --- a/Tethering/tests/unit/src/com/android/networkstack/tethering/TetheringNotificationUpdaterTest.kt +++ b/Tethering/tests/unit/src/com/android/networkstack/tethering/TetheringNotificationUpdaterTest.kt @@ -130,7 +130,7 @@ class TetheringNotificationUpdaterTest { context = TestContext(InstrumentationRegistry.getInstrumentation().context) doReturn(notificationManager).`when`(mockContext) .getSystemService(Context.NOTIFICATION_SERVICE) - fakeTetheringThread = HandlerThread(this::class.simpleName) + fakeTetheringThread = HandlerThread(this::class.java.simpleName) fakeTetheringThread.start() notificationUpdater = WrappedNotificationUpdater(context, fakeTetheringThread.looper) setupResources()